String (final Namespace namespace, final Element element, final int ignoreAtt) { String reason = checkNamespaceCollision(namespace, element.getNamespace()); if (reason != null) { return reason + " with the element namespace prefix"; } if (element.hasAdditionalNamespaces()) { reason = checkNamespaceCollision(namespace, element.getAdditionalNamespaces()); if (reason != null) { return reason; } } if (element.hasAttributes()) { reason = checkNamespaceCollision(namespace, element.getAttributes(), ignoreAtt); if (reason != null) { return reason; } } return null; }