@Override
protected void doExecuteCommand() {
List<InvalidValue> invalidExceptions = new ArrayList<InvalidValue>(5);
MyBean myBean = new MyBean();
invalidExceptions.add(new InvalidValue("first invalid message", MyBean.class, "firstProperty",
"first invalid value", myBean));
invalidExceptions.add(new InvalidValue("second invalid message", MyBean.class, "secondProperty",
"second invalid value", myBean));
invalidExceptions.add(new InvalidValue("third invalid message", MyBean.class, "thirdProperty",
"third invalid value", myBean));
invalidExceptions.add(new InvalidValue("fourth invalid message", MyBean.class, "fourthProperty",
"fourth invalid value", myBean));
invalidExceptions.add(new InvalidValue("fifth invalid message", MyBean.class, "fifthProperty",
"fifth invalid value", myBean));
throw new InvalidStateException(invalidExceptions.toArray(new InvalidValue[] {}));
}