docs: function createAgentChildState (appname, moduleName, state, parentStateName, moduleUrl) {
    var controllerPath = path.join(appname, 'generated', 'agents', moduleName, 'controllers'),
      partialPath = path.join(appname, 'generated', 'partials', 'agents', moduleName)
  
    state['name'] = state.subPath.replace('/', '')
  
    fs.mkdir(path.join(controllerPath, parentStateName), function (response) {
      createTemplate(appname, path.join('generated', 'agents', 'agentChildController.js'), {
        moduleName: moduleName,
        state: state
      })
      var oldControllerPath = path.join(appname, 'generated', 'agents', 'agentChildController.js'),
        newControllerPath = path.join(controllerPath, parentStateName, state.name + '.js')
      fs.renameSync(oldControllerPath, newControllerPath)
    })
  
    fs.mkdir(path.join(partialPath, parentStateName), function (response) {
      createTemplate(appname, path.join('generated', 'agents', 'agentChild.html'), {
        moduleName: moduleName,
        parentStateName: parentStateName,
        state: state,
        moduleUrl: moduleUrl
  
      })
  
      var oldHtmlPath = path.join(appname, 'generated', 'agents', 'agentChild.html'), newHtmlPath = path.join(partialPath,
          parentStateName, state.name + '.html')
      fs.renameSync(oldHtmlPath, newHtmlPath)
    })
  }