public <T> T coerce(String value, Class<T> to) throws ConfigurationException {
logger.debug(Messages.getString("try.to.coerce.pstr.to.pcls"), value, to.getCanonicalName());
TypeCoercer coercer = subs.get(to);
if (coercer == null) {
logger.error(Messages.getString("did.not.find.a.handler.for.class.pcls"), to.getCanonicalName());
throw new ConfigurationException(Messages.getString("type.0.not.supported", to.getCanonicalName()));
}
logger.debug(Messages.getString("found.handler.pobj.for.class.pcls"), coercer, to.getCanonicalName());
return coercer.coerce(value, to);
}