Code example for ServiceRegistryBuilder

0
	} 
 
	private static StandardServiceRegistryImpl createServiceRegistry(Properties properties) { 
		Environment.verifyProperties( properties ); 
		ConfigurationHelper.resolvePlaceHolders( properties ); 
		return (StandardServiceRegistryImpl) new ServiceRegistryBuilder().applySettings( properties ).buildServiceRegistry(); 
	} 
 
	public static void main(String[] args) { 
		try { 
			Configuration cfg = new Configuration(); 
 
			String propFile = null; 
 
			for ( int i = 0; i < args.length; i++ ) { 
				if ( args[i].startsWith( "--" ) ) { 
					if ( args[i].startsWith( "--properties=" ) ) { 
						propFile = args[i].substring( 13 ); 
					} 
					else if ( args[i].startsWith( "--config=" ) ) {