Namespace (final String prefix) { final Namespace ns = xnamespaces.get(prefix); if (ns == null) { throw new IllegalArgumentException("Namespace with prefix '" + prefix + "' has not been declared."); } return ns; }