context.getProfiler().end(this, "", result);
return result;
}
public static void collectNamespacePrefixes(Element element, Map prefixes) {
String namespaceURI = element.getNamespaceURI();
<BUG>String prefix;</BUG>
if (namespaceURI != null && namespaceURI.length() > 0) {
<BUG>prefix = element.getPrefix();
</BUG>
prefixes.put(prefix == null ? "" : prefix, namespaceURI);

context.getProfiler().end(this, "", result);
return result;
}
public static void collectNamespacePrefixes(Element element, Map prefixes) {
String namespaceURI = element.getNamespaceURI();
if (namespaceURI != null && namespaceURI.length() > 0) {
String prefix = element.getPrefix();
prefixes.put(prefix == null ? "" : prefix, namespaceURI);
