boolean (XValueChildrenList children, String name) { for (int i = 0; i < children.size(); i++) // Dictionary key names are followed by the hash so we need to consider only // the first word of a name. For lists this operation doesn't have any effect. if (children.getName(i).split(" ")[0].equals(name)) return true; return false; }