if (step != null) {
LOG.trace("Current step is " + step);
if (target instanceof Field
&& ((Field) target).isAnnotationPresent(
ValidationStep.class)) {
ValidationStep stepAnnotation = ((Field) target)
.getAnnotation(ValidationStep.class);
if (stepAnnotation.value() != null) {
LOG.trace("Field has ValidationStep annotation with "
+ stepAnnotation.value().length
+ " step(s) specified");
for (int validStep : stepAnnotation.value()) {
LOG.trace("Testing step " + validStep);
if (Integer.valueOf(validStep).equals(step)) {
LOG.trace("Step matches!");
return true;
}