if (paramAnnotations != null && paramAnnotations.length > 0) {
for (int jx = 0; jx < paramAnnotations.length; jx++) {
final Annotation paramAnnotation = paramAnnotations[jx];
if (ParameterDataUpdateContent.class.equals(paramAnnotation.annotationType())) {
if (foundIndex >= 0) {
throw new InvalidParameterException(String.format(
"Multiple annotations of type [%s] found on method [%s]",
ParameterDataUpdateContent.class.getName(),
targetMethod.getName()
));
}
foundIndex = ix;
}
}
}
}
}
if (foundIndex < 0) {
throw new InvalidParameterException(String.format(
"No KeyProvider annotation found method [%s]",
targetMethod.getName()
));
}