docs: function hapiErrorHandler(req, err, config) {
    var service = '';
    var version = '';
  
    if (isObject(config)) {
      service = config.getServiceContext().service;
      version = config.getServiceContext().version;
    }
  
    var em = new ErrorMessage()
                 .consumeRequestInformation(hapiRequestInformationExtractor(req))
                 .setServiceContext(service, version);
  
    errorHandlerRouter(err, em);
  
    return em;
  }