Field found = null;
URIField anno = null;
for (final Field field : fields) {
anno = field.getAnnotation(URIField.class);
if (anno == null ? field.getName().equals(name) : anno.component().equals(name)
|| (anno.component().equals(EndpointConfiguration.URI_QUERY) && anno.parameter().equals(name))) {
found = field;
LOG.trace("Found field {}.{} as candidate for parameter {}",
new Object[] {clazz.getName(), found != null ? found.getName() : "<null>", name});