"uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager");
Object ob = xRemoteServiceManager.createInstanceWithContext(
"org.openoffice.test.ImageShrink", xRemoteContext);
XImageShrink xImageShrink = (XImageShrink) UnoRuntime.queryInterface(
XImageShrink.class, ob);
xImageShrink.setSourceDirectory("file:///C:/");
System.out.println(xImageShrink.getSourceDirectory());
/*
System.out.println((xImageShrink.getSourceDirectory()));
*/
}