public boolean processRequest(CommandRequest request) throws Exception {
MemoryProfiler memoryProfiler = MemoryProfiler.lookup();
if (memoryProfiler.isLowMemory()) {
log.warn("Memory is running low ...");
memoryProfiler.freeMemory();
if (memoryProfiler.isLowMemory()) {
ControllerStatus controllerStatus = ControllerStatus.lookup();
controllerStatus.setResponse(new SendErrorResponse(503));
controllerStatus.consumeURIPart(controllerStatus.getURIToBeConsumed());
log.error("Memory is so low that the request had to be canceled - 503 sent. Consider increasing the JVM memory.");