return resource(URI.create(uri));
}
private void initProvidersRegistry() {
// setup OFFactoryRegistry to support default and scope
LifecycleManagersRegistry ofFactoryRegistry = new LifecycleManagersRegistry();
ofFactoryRegistry.addFactoryFactory(new ScopeLifecycleManager<Object>());
providersRegistry = new ProvidersRegistry(ofFactoryRegistry, new ApplicationValidator());
// process all applications
for (Application app : config.getApplications()) {
processApplication(app);