ot.setJavaClass(Generic.class);
    private static ObjectType createKeyedType(Model m, String name) {        ObjectType ot = new ObjectType(m, name, null);        Role id = new Role(            "id", Root.getRoot().getObjectType(INTE),            false, false, false);        ot.addProperty(id);        ObjectMap om = new ObjectMap(ot);        Collection keys = om.getKeyProperties();        keys.add(id);        Root.getRoot().addObjectType(ot);        Root.getRoot().addObjectMap(om);        return ot;    }