try {
Object noPS = tEnv.getObjRelation("noPS");
if ( noPS == null) {
XPropertySet objps = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, oObj);
XPropertySetInfo objpsi = objps.getPropertySetInfo();
Property[] objprops = objpsi.getProperties();
Object oCopy = ((XMultiServiceFactory)tParam.getMSF()).createInstance(sname);
XPersistObject persCopy = (XPersistObject)
UnoRuntime.queryInterface(XPersistObject.class, oCopy);
persCopy.read(iStream);
XPropertySet copyps = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, oCopy);
XPropertySetInfo copypsi = copyps.getPropertySetInfo();
Property[] copyprops = copypsi.getProperties();
for (int i = 0; i < copyprops.length; i++) {
Object cps = copyps.getPropertyValue(copyprops[i].Name);
Object ops = objps.getPropertyValue(objprops[i].Name);
boolean locRes = ( (ValueComparer.equalValue(cps,ops)) ||