ObjectType objectType = oid.getDataObjectType();
ObjectType objectType = oid.getObjectType();
    private DataObject getObjectFromOID(OID oid) {        ObjectType objectType = oid.getDataObjectType();        GenericDataObject object =            GenericDataObjectFactory.createObject(                objectType,                SessionManager.getSession(),                false                );        // now we set all of the properties specified by the OID        Iterator iterator = objectType.getKeyProperties();        while (iterator.hasNext()) {            String propertyName = ((Property)iterator.next()).getName();            Object value = oid.get(propertyName);            if (value != null) {                object.getDataContainer().initProperty(propertyName, value);            }        }        return object;    }