{
@Nullable
@Override
public ValidationErrorXO apply(@Nullable final ValidationMessage message) {
if (message != null) {
return new ValidationErrorXO(message.getKey(), message.getMessage());
}
return null;
}
});
}
}
return Lists.newArrayList(new ValidationErrorXO(exception.getMessage()));
}