@Override
  public final Namespace getNamespace(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;
  }
@Override
  public final Namespace getNamespace(final String prefix)