/** * Returns the qualified name from the given {@code QName}. If the name has * no namespace, result is the simple name. Otherwise, the namespace prefix * is added. * * @param name the {@code QName} * @return the qualified name */ protected static String qualifiedName(final QName name) { return (name.getPrefix() == null) ? name.getName() : prefixName( name.getPrefix(), name.getName()); } }