// A little scope for some optimization exists, particularly,
// it is feasible a complex object may need to be repeatedly converted
// so we can keep a map of ParamConverter on the bus, that said
// it seems an over-optimization at this stage, it's a 5% case;
// typical requests have a limited number of simple URI parameters
ProviderFactory pf = ProviderFactory.getInstance(cfg.getBus());
if (pf != null) {
@SuppressWarnings("unchecked")
ParamConverter<Object> prov = (ParamConverter<Object>)pf.createParameterHandler(pClass);
if (prov != null) {
return prov.toString(pValue);
}
}
return pValue.toString();