public static boolean hasAttribute(int version, Element element, String name) {
        if (version >= 3) {
            return element.hasAttribute(PREFIX+name);
        } else {
            return element.hasAttribute(name);
        }
    }
Tests if the element contains the named attribute.
<p>
Automatically appends {@link #PREFIX} to the beginning
of the name before looking up the attribute for format versions 3 and up.

@param version format version of the xml
@param element element to test
@param name name of the attribute (without prefix)
@return true if the element has the named attribute
jme3-plugins/src/xml/java/com/jme3/export/xml/XMLUtils.java