code: function generateWebHook(cordovaContext, pluginPreferences) {
    var projectRoot = cordovaContext.opts.projectRoot;
    var configXmlHelper = new ConfigXmlHelper(cordovaContext);
    var packageName = configXmlHelper.getPackageName('android');
    var template = readTemplate(projectRoot);
  
    // if template was not found - exit
    if (template == null || template.length == 0) {
      return;
    }
  
    // generate hook content
    var linksToInsert = generateLinksSet(projectRoot, packageName, pluginPreferences);
    var hookContent = template.replace(LINK_PLACEHOLDER, linksToInsert);
  
    // save hook
    saveWebHook(projectRoot, hookContent);
  }
docs: region Public API 
  Generate website hook for android application.
  
  @param {Object} cordovaContext - cordova context object
  @param {Object} pluginPreferences - plugin preferences from config.xml file; already parsed