for( int i=0; i<elt.length; i++ ) {
if( "serviceFactory".equalsIgnoreCase(elt[i].getName()) ) { // $NON-NLS-1$
try {
Object o = elt[i].createExecutableExtension("class"); // $NON-NLS-1$
IServiceFactory factory = (IServiceFactory)o;
IPlatformService srv = factory.getPlatformService(serviceId);
if ( srv != null ){
return srv;
}
} catch(Throwable ex) {
ex.printStackTrace();