ObjectType type = getObjectType(); Collection props = type.getRoot().getObjectMap(type) .getKeyProperties(); addProperties(props);
addProperties(getObjectType().getKeyProperties());
    private void addKeyProperties() {        ObjectType type = getObjectType();        Collection props = type.getRoot().getObjectMap(type)            .getKeyProperties();        addProperties(props);    }