public class AuthorizationManagerFactory extends AbstractNamedCacheComponentFactory implements AutoInstantiableFactory {
@Override
@SuppressWarnings("unchecked")
public <T> T construct(Class<T> componentType) {
if (configuration.security().authorization().enabled())
return (T) new AuthorizationManagerImpl();
else
return null;
}