Element (final Element element, final String childName) { final Element child = getChild(element, childName); if(child == null){ throw new IllegalArgumentException("subtag '" + childName + "' is required: "+element); } return child; }