title: Override DropWizard ConstraintViolation message
body: <p>So I want to change the validation messages used to validate a model through a DropWizard resource.</p>
  
  <p>I'm using java bean validation annotations. For example here is one of the fields I want to validate:</p>
  
  <pre><code>@NotEmpty(message = "Password must not be empty.")
  </code></pre>
  
  <p>I can test this works as expected using a validator.</p>
  
  <p>However when I use DropWizard to do the validation on the resource it adds some extra stuff to that message. What I see is this - <code>password Password must not be empty. (was null)</code> and I've found the code that does this here - <a href="https://github.com/dropwizard/dropwizard/blob/master/dropwizard-validation/src/main/java/io/dropwizard/validation/ConstraintViolations.java" rel="noreferrer">https://github.com/dropwizard/dropwizard/blob/master/dropwizard-validation/src/main/java/io/dropwizard/validation/ConstraintViolations.java</a></p>
  
  <p>Specifically this method -</p>
  
  <pre><code>public static &lt;T&gt; String format(ConstraintViolation&lt;T&gt; v) {
      if (v.getConstraintDescriptor().getAnnotation() instanceof ValidationMethod) {
          final ImmutableList&lt;Path.Node&gt; nodes = ImmutableList.copyOf(v.getPropertyPath());
          final ImmutableList&lt;Path.Node&gt; usefulNodes = nodes.subList(0, nodes.size() - 1);
          final String msg = v.getMessage().startsWith(".") ? "%s%s" : "%s %s";
          return String.format(msg,
                               Joiner.on('.').join(usefulNodes),
                               v.getMessage()).trim();
      } else {
          return String.format("%s %s (was %s)",
                               v.getPropertyPath(),
                               v.getMessage(),
                               v.getInvalidValue());
      }
  }
  </code></pre>
  
  <p>Is there any way I can override this behaviour? I just want to display the message that I set in the annotation...</p>