}
private static void validate(Constructor constructor, ParameterResolver[] parameterResolvers) {
for (int i = 0; i < constructor.getParameterTypes().length; i++) {
if (parameterResolvers[i] == null) {
throw new UnsupportedHandlerException(
format("On method %s, parameter %s is invalid. It is not of any format supported by a provided"
+ "ParameterValueResolver.",
constructor.toGenericString(), i + 1), constructor);
}
}