updated getParent method to return content model or meta model depending on the caller