OID oid = new OID(C.fromType(type));
ObjectType ot = C.fromType(type);  if (ot == null) { return props; }  OID oid = new OID(ot);
                public Object getObject(com.arsdigita.persistence.proto.metadata.ObjectType type,                                        PropertyMap props) {                    OID oid = new OID(C.fromType(type));                    for (Iterator it = props.entrySet().iterator();                         it.hasNext(); ) {                        Map.Entry me = (Map.Entry) it.next();                        Property prop = (Property) me.getKey();                        oid.set(prop.getName(), me.getValue());                    }                    return new DataObjectImpl(oid);                }