private static void setValidationDecoration(Decoration decoration) {
   if (decoration != null) {
     decoration.getProperties().put(VALIDATION_DECORATION, Boolean.TRUE);
   }
 }
 private static boolean isValidationDecoration(Decoration decoration) {
   return decoration != null
       && decoration.getProperties().get(VALIDATION_DECORATION) == Boolean.TRUE;
 }