* Initializes registries. Usually there should be no need to override this
* method. When creating Resources or Providers registry, ensure that they
* use the same instance of the ApplicationValidator.
*/
protected void initRegistries() {
InjectableFactory.setInstance(new ServerInjectableFactory());
if (ofFactoryRegistry == null) {
ofFactoryRegistry = new LifecycleManagersRegistry();
ofFactoryRegistry.addFactoryFactory(new ScopeLifecycleManager<Object>());
ofFactoryRegistry.addFactoryFactory(new JSR250LifecycleManager<Object>());
}