new ToolSpec(toolspecStream, validate)
});
} catch (Exception ex) {
Message message = new Message("CLZ_CANNOT_BE_CONSTRUCTED", LOG, clz.getName());
LOG.log(Level.SEVERE, message.toString());
throw new ToolException(message, ex);
}
try {
container.setCommandLine(args);
container.init();
container.execute(exitOnFinish);
} catch (Exception ex) {
throw ex;
}
} else {
Message message = new Message("CLZ_SHOULD_IMPLEMENT_INTERFACE", LOG, clz.getName());
LOG.log(Level.SEVERE, message.toString());
throw new ToolException(message);
}
}