// query for the service interface
XSomethingB xs= (XSomethingB) UnoRuntime.queryInterface(
XSomethingB.class, objTest);
// and call the test method.
String s= xs.methodTwo("Hello World");
System.out.println(s);
// wait until return is pressed
System.out.println( "Press return to terminate" );
while( System.in.read() != 10 );