private Collection<String> createSupersededByOptionalQuery() {
        Collection<String> supersededByOptional = _asset.getWlpInformation().getSupersededByOptional();

        Collection<String> query = null;
        if (supersededByOptional != null) { //if there are no queries to add
            query = new ArrayList<String>();

            for (String feature : supersededByOptional) {
                StringBuilder b = new StringBuilder();
                b.append("wlpInformation.shortName=");
                b.append(feature);
                b.append("&wlpInformation.appliesToFilterInfo.minVersion.value=");
                String version = findVersion();
                if (version != null) {
                    b.append(version);
                    b.append("&type=com.ibm.websphere.Feature");
                }
                query.add(b.toString());
            }
        }

        return query;
    }
private Collection < String > createSupersededByOptionalQuery ( ) { Collection < String > supersededByOptional = _asset . getWlpInformation ( ) . getSupersededByOptional ( ) ; Collection < String > query = null ; if ( supersededByOptional != null ) { query = new ArrayList < String > ( ) ; for ( String feature : supersededByOptional ) { StringBuilder b = new StringBuilder ( ) ; b . append ( "wlpInformation.shortName=" ) ; b . append ( feature ) ; b . append ( "&wlpInformation.appliesToFilterInfo.minVersion.value=" ) ; String version = findVersion ( ) ; if ( version != null ) { b . append ( version ) ; b . append ( "&type=com.ibm.websphere.Feature" ) ; } query . add ( b . toString ( ) ) ; } } return query ; }
@return the query for Superseded By (optional) or null if this feature
does not declare itself to be optionally superseded by anything.