Class< ? > providerClass = OSGiLocator.locate( serviceClass.getName() );
if ( providerClass != null ) {
return newInstance( serviceClass,
providerClass );
}
<BUG>ChainedProperties props = new ChainedProperties( classLoader,

CONFIG_FILE );
String providerName = props.getProperty( serviceClass.getName(),</BUG>
null );

Class< ? > providerClass = OSGiLocator.locate( serviceClass.getName() );
if ( providerClass != null ) {
return newInstance( serviceClass,
providerClass );
}
ChainedProperties props = new ChainedProperties( CONFIG_FILE,
ClassLoaderUtil.getClassLoader( null, ProviderLocator.class ),
true );
String providerName = props.getProperty( serviceClass.getName(),
null );
