code: private static ValidationMessage[] vmFromVector(Vector v) {
          ValidationMessage[] vm = new ValidationMessage[v.size()];
          for (int i = 0; i < vm.length; i++) {
              vm[i] = (ValidationMessage) v.get(i);
          }
          return vm;
      }
docs: constructs a ValidationMessage[] from a ValidationMessage Vector