OID oid = ((DataObjectImpl) obj).getOID(); PropertyMap result = new PropertyMap(getObjectType(obj)); for (Iterator it = oid.getProperties().entrySet().iterator(); it.hasNext(); ) { Map.Entry me = (Map.Entry) it.next(); result.put(getObjectType(obj) .getProperty((String) me.getKey()), me.getValue());
final DataObjectImpl dobj = (DataObjectImpl) obj;  if (dobj.p_pMap == null) { final PropertyMap pMap = new PropertyMap(getObjectType(obj)); final Iterator it = dobj.getOID().getProperties().entrySet().iterator();  while (it.hasNext()) { Map.Entry me = (Map.Entry) it.next(); pMap.put(getObjectType(obj) .getProperty((String) me.getKey()), me.getValue()); } dobj.p_pMap = pMap;
        public PropertyMap getProperties(Object obj) {            if (obj instanceof PropertyMap) {                return (PropertyMap) obj;            }            OID oid = ((DataObjectImpl) obj).getOID();            PropertyMap result = new PropertyMap(getObjectType(obj));            for (Iterator it = oid.getProperties().entrySet().iterator();                 it.hasNext(); ) {                Map.Entry me = (Map.Entry) it.next();                result.put(getObjectType(obj)                           .getProperty((String) me.getKey()), me.getValue());            }            return result;        }