extraProperties.add(next);
}
}
if (!extraProperties.isEmpty()) {
String msg = "Extra properties were found in the request data at: " + layer.getCurrentPath() + ": ";
ExtraPropertyException exception = new ExtraPropertyException(msg, extraProperties, getAttributeNames(paramClass,
Predicates.<Field>alwaysTrue()));
if (errorOnExtraProperties) {
throw exception;
} else {
LOGGER.warn(exception.getMessage(), exception);
}
}
}