Code example for ServiceException

0
				: locate( registry, customImpl.toString() );
		try { 
			return customImplClass.newInstance();
		} 
		catch (Exception e) {
			throw new ServiceException( "Could not initialize custom PersisterFactory impl [" + customImplClass.getName() + "]", e );
		} 
	} 
 
	private Class<? extends PersisterFactory> locate(ServiceRegistryImplementor registry, String className) {
		return registry.getService( ClassLoaderService.class ).classForName( className );
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE