xSet.insert( new com.sun.star.comp.loader.JavaLoaderFactory( xMgr ) );
// get rdb of smgr
XSimpleRegistry xRDB = (XSimpleRegistry)AnyConverter.toObject(
new Type( XSimpleRegistry.class ), xProps.getPropertyValue( "Registry" ) );
// register impl
XImplementationRegistration xImpReg =
UnoRuntime.queryInterface(
XImplementationRegistration.class,
xContext.getServiceManager().createInstanceWithContext(
"com.sun.star.registry.ImplementationRegistration", xContext ) );
xImpReg.registerImplementation( "com.sun.star.loader.Java2", jar, xRDB );
// tests
System.out.println( "testing instance" );
service_info_test( new Factory_Test() );
System.out.println( "testing instance" );