@Override public void run(final Context context) throws ExitException { if (context.contains(INSTANCE)) { context.show("Validating DSL ..."); final Either<Boolean> result = DslCompiler.parse(context, DslPath.getDslPaths(context)); if (result.isSuccess()) { context.show("Parse successful."); } else { context.error(result.whyNot()); throw new ExitException(); } } }