/** * Checks if the Loop contains the specified child Loop. It will check the complete child * hierarchy. * * @param name name of a child loop * @return boolean */ public boolean hasLoop(String name) { for (Loop l : this.childList()) { if (name.equals(l.getName())) { return true; } if (l.hasLoop(name)) { return true; } } return false; }