src/main/java/net/wasdev/wlp/common/plugins/util/InstallFeatureUtil.java
private static Set<String> parseFeatureManagerNode(Element node) {
        Set<String> result = new HashSet<String>();
        NodeList features = node.getElementsByTagName("feature");
        if (features != null) {
            for (int j = 0; j < features.getLength(); j++) {
                String content = features.item(j).getTextContent();
                if (content != null) {
                    if (content.contains(":")) {
                        String[] split = content.split(":", 2);
                        result.add(split[1].trim().toLowerCase());
                    } else {
                        result.add(content.trim().toLowerCase());
                    }
                }
            }
        }
        return result;
    }
private static Set<String> parseFeatureManagerNode(Element node) {
        Set<String> result = new HashSet<String>();
        NodeList features = node.getElementsByTagName("feature");
        if (features != null) {
            for (int j = 0; j < features.getLength(); j++) {
                String content = features.item(j).getTextContent();
                if (content != null) {
                    if (content.contains(":")) {
                        String[] split = content.split(":", 2);
                        result.add(split[1].trim().toLowerCase());
                    } else {
                        result.add(content.trim().toLowerCase());
                    }
                }
            }
        }
        return result;
    }
private static Set < String > parseFeatureManagerNode ( Element node ) { Set < String > result = new HashSet < String > ( ) ; NodeList features = node . getElementsByTagName ( "feature" ) ; if ( features != null ) { for ( int j = 0 ; j < features . getLength ( ) ; j ++ ) { String content = features . item ( j ) . getTextContent ( ) ; if ( content != null ) { if ( content . contains ( ":" ) ) { String [ ] split = content . split ( ":" , 2 ) ; result . add ( split [ 1 ] . trim ( ) . toLowerCase ( ) ) ; } else { result . add ( content . trim ( ) . toLowerCase ( ) ) ; } } } } return result ; }
Parse feature elements from a featureManager node, trimming whitespace
and treating everything as lowercase.

@param node
The featureManager node
@return Set of trimmed lowercase feature names
Parse feature elements from a featureManager node trimming whitespace and treating everything as lowercase .