public static void setAttribute(Element element, String name, String attribute) throws IOException {
        try {
            element.setAttribute(PREFIX+name, attribute);
        } catch (DOMException domEx) {
            throw new IOException(domEx);
        }
    }
Sets the attribute in the element under the name.
<p>
Automatically appends {@link #PREFIX} to the beginning of the name
before assigning the attribute to the element.

@param element element to set the attribute in
@param name name of the attribute (without prefix)
@param attribute attribute to save

@throws java.io.IOException wraps DOMException in IOException for convenience since everywhere this method
is used is expected to throw only IOException.
jme3-plugins/src/xml/java/com/jme3/export/xml/XMLUtils.java