// is defined, and if so, call the class to get the default value
if (paramValueStr == null) {
Class<? extends ParamDefaultCalculator> dc = param.defaultCalculator();
if (dc != ParamDefaultCalculator.class) {
try {
ParamDefaultCalculator pdc = dc.newInstance();
paramValueStr = pdc.defaultValue(context);
} catch (InstantiationException ex) { // @todo Java SE 7 - use multi catch
Logger.getLogger(MapInjectionResolver.class.getName()).log(Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
Logger.getLogger(MapInjectionResolver.class.getName()).log(Level.SEVERE, null, ex);
}