if ( !execute() ) {
printHelp();
}
} catch (IllegalArgumentException e) {
printHelp();
throw new XindiceException("ERROR : " + e.getMessage(), e);
} catch (NoSuchElementException e) {
throw new NoSuchElementException("ERROR : " + e + " Switch found. Parameter missing.");
} catch (NullPointerException e) {
e.printStackTrace(System.err);
throw new NullPointerException("ERROR : " + e);
} catch (Exception e) {
e.printStackTrace(System.err);
throw new XindiceException("ERROR : " + e.getMessage(), e);
}
}