code: protected DehydratedExecutionContext resolveContextForErrorHandling(DehydratedExecutionContext ctx, HttpCommand command) {
          if (ctx != null) return ctx;
          try {
              return contextResolution.resolveExecutionContext(protocol, command, null);
          } catch (RuntimeException e) {
              // Well that failed too... nothing to do but return null
              LOGGER.debug("Failed to resolve error execution context", e);
              return null;
          }
      }
docs: Resolves an HttpCommand to an ExecutionContext for the error logging scenario. This will
  never throw an exception although it might return null. The process is:
  <li>If a non null context is passed,us it</li>
  <li>Otherwise try and resolve a context from the commmand</li>
  <li>If that fail, return null</li>
  @param ctx
  the previously resolved context
  @param command
  contains the HttpServletRequest from which the contextual
  information is derived
  @return the ExecutionContext, populated with information from the
  HttpCommend