Gets or generates a new session instance using generator with the type T (or name if specified)
if no session provider is registered for the type T (or name if specified)