docs: function initServicesDir (config, dir) {
      // iterate over file names in directory
      _.each(fs.readdirSync(dir), file => {
          // get absolute file
          var absFile = `${dir}/${file}`
          // match services files
          var matches = file.match(/^(.*?)\.service\.js$/)
          // load file if it matches filename pattern
          if (matches) {
              // get service name from file name
              var serviceName = changeCase.camelCase(matches[1])
              // load service
              var service = require(path.relative(__dirname, absFile))
              // validate service name if defined
              if (defined(service.name)) {
                  assert(service.name === serviceName, `service name ${service.name} does not match filename ${absFile}`)
              }
              // otherwise set service name from file name
              else {
                  service.name = serviceName
              }
              // if service is already defined merge over existing definition
              if (defined(config.services[service.name])) {
                  _.merge(config.services[service.name], service)
              }
              // otherwise set new service
              else {
                  config.services[service.name] = service
              }
          }
          // ignore anything else
          else {
              debug('initServicesDir: ignoring %s', absFile)
          }
      })
  }