*
* @param message Message to be logged
* @param throwable Associated exception
*/
private void log(String message, Throwable throwable) {
Logger logger = context.getLogger();
if (logger != null)
logger.log("ApplicationDispatcher[" + context.getPath() +
"] " + message, throwable);
else {
System.out.println("ApplicationDispatcher[" +
context.getPath() + "]: " + message);
throwable.printStackTrace(System.out);