if (substitution.hasChanged() && (substitution.fState == NLSSubstitution.EXTERNALIZED)) { subs.add(new KeyValuePair(prefix + substitution.fKey, substitution.fValue));
if (substitution.hasStateChanged() && (substitution.getState() == NLSSubstitution.EXTERNALIZED)) { subs.add(new KeyValuePair(substitution.getKey(), substitution.getValue()));
    private static KeyValuePair[] convertSubstitutionsToKeyValue(NLSSubstitution[] substitutions, String prefix) {        List subs = new ArrayList(substitutions.length);        for (int i = 0; i < substitutions.length; i++) {            NLSSubstitution substitution = substitutions[i];            if (substitution.hasChanged() && (substitution.fState == NLSSubstitution.EXTERNALIZED)) {                subs.add(new KeyValuePair(prefix + substitution.fKey, substitution.fValue));            }        }        return (KeyValuePair[]) subs.toArray(new KeyValuePair[subs.size()]);    }