String key = entry.getKey();
if (!input.endsWith(key)) {
continue;
}
AggregationMessageFormat amf = amfMap.get(key);
CompositeFormat cf = new CompositeFormat(amf);
String output;
try {
output = cf.parse(input);
} catch (Exception e) {
continue;
}
return output;
}
}
for (Map<String, AggregationMessageFormat> amfMap : eformatSet) {
for (Entry<String, AggregationMessageFormat> entry : amfMap.entrySet()) {
String key = entry.getKey();
if (!input.startsWith(key)) {
continue;
}
AggregationMessageFormat amf = amfMap.get(key);
CompositeFormat cf = new CompositeFormat(amf);
String output;
try {
output = cf.parse(input);
} catch (Exception e) {
continue;
}
return output;
}