code: function generateEntitlements(cordovaContext, pluginPreferences) {
    context = cordovaContext;
  
    var currentEntitlements = getEntitlementsFileContent();
    var newEntitlements = injectPreferences(currentEntitlements, pluginPreferences);
  
    saveContentToEntitlementsFile(newEntitlements);
  }
docs: region Public API 
  Generate entitlements file content.
  
  @param {Object} cordovaContext - cordova context object
  @param {Object} pluginPreferences - plugin preferences from config.xml; already parsed