private MappingBaseNode getRecursiveRootNode(MappingRecursiveElement elem) { if (hasSource(elem.getMappingClass())) { return this; } MappingBaseNode parent = this.getParentNode(); if (parent != null) { return parent.getRecursiveRootNode(elem); } throw new RuntimeException(Messages.gs(Messages.TEIID.TEIID30457, elem)); }