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(); 
 
			boolean script = true; 
			// If true then execute db updates, otherwise just generate and display updates 
			boolean doUpdate = true; 
			String propFile = null; 
 
			for ( int i = 0; i < args.length; i++ ) { 
				if ( args[i].startsWith( "--" ) ) { 
					if ( args[i].equals( "--quiet" ) ) {