public boolean isReferencedByRoot() {
        if(rootBean) {
            return true;
        }
        for(Reference reference : references) {
            Instance parent = reference.getParent();
            if(parent.isReferencedByRoot()) {
                return true;
            }
        }
        return false;
    }
public boolean isReferencedByRoot ( ) { if ( rootBean ) { return true ; } for ( Reference reference : references ) { Instance parent = reference . getParent ( ) ; if ( parent . isReferencedByRoot ( ) ) { return true ; } } return false ; }
Return true if the dolphin bean instance is a root bean or is referenced by a root bean
@return true if the dolphin bean instance is a root bean or is referenced by a root bean