String pastFutureMethod = "";
String applyIfValang = null;
if (a instanceof InThePast) {
InThePast annotation = (InThePast) a;
errMsg = messages.getMessage(annotation.errorCode(), annotation.message());
pastFutureMethod = "lessThan";
applyIfValang = valangToJS(annotation.applyIf());
} else if (a instanceof InTheFuture) {
InTheFuture annotation = (InTheFuture) a;
errMsg = messages.getMessage(annotation.errorCode(), annotation.message());