@Override
public CMSObject getParentByNode(CMSObject instance, Object session) throws RepositoryAccessException {
// TODO Auto-generated method stub
if (instance.getParentRef() == null) {
throw new RepositoryAccessException("No parent", null);
} else {
String ref = instance.getParentRef();
CMSObject parent = of.createCMSObject();
parent.setLocalname("localname" + ref);
parent.setNamespace("namespace" + ref);