{
log.warn("consumer @ " + location + " excluded. Param consumers is required.");
return;
}
ConsumerInterceptor ci = new ConsumerInterceptor();
Properties fieldParams = new Properties();
loadPropertiesFromClass(fieldParams, pojoClass);
addParamsToProperties(fieldParams, c.fieldParams());
for(int i=0; i<consumers.length; i++)
{
try
{
ValidatingConsumer vc = (ValidatingConsumer)consumers[i].newInstance();
vc.preConfigure(httpMethod, c.contentType(), pojoClass, fieldParams);
ci.addConsumer(vc);
}
catch(Exception e)
{
throw new RuntimeException(e);
}