@Override
    public BitSet readBitSet(String name, BitSet defVal) throws IOException {
        String attribute = null;
        
        attribute = XMLUtils.getAttribute(importer.getFormatVersion(), currentElement, name);

        if (attribute == null || attribute.isEmpty()) {
            return defVal;
        }
    
        String[] strings = parseTokens(attribute);
        BitSet bitSet = new BitSet();
        for (int i = 0; i < strings.length; i++) {
            if (strings[i].equals("1")) {
                bitSet.set(i);
            }
        }

        return bitSet;
    }
Part of the jME XML IO system as introduced in the Google Code jmexml project.

@author Kai Rabien (hevee) - original author of the code.google.com jmexml project
@author Doug Daniels (dougnukem) - adjustments for jME 2.0 and Java 1.5
@author blaine
jme3-plugins/src/xml/java/com/jme3/export/xml/DOMInputCapsule.java