throw new InvalidArgument("sourceValue", sourceValue);
}
loadEquivalencingEngine();
final Parameter sp = new Parameter(sourceNamespace, sourceValue);
try {
final List<Parameter> equivalences = this.paramEquivalencer
.findEquivalences(sp);
Map<Namespace, String> equivalenceMap = sizedHashMap(equivalences
.size());
for (final Parameter equivalence : equivalences) {
equivalenceMap.put(equivalence.getNamespace(),
equivalence.getValue());
}
return equivalenceMap;
} catch (InvalidArgument e) {
//TODO change exception when paramEquivalencer is changed
return null;
} catch (Exception e) {
final String fmt = "Unable to find equivalences for '%s'";
final String msg = format(fmt, sp.toBELShortForm());
throw new EquivalencerException(msg, e);
}
}