code: function injectPreferences(currentEntitlements, pluginPreferences) {
    var newEntitlements = currentEntitlements;
    var content = generateAssociatedDomainsContent(pluginPreferences);
  
    newEntitlements[ASSOCIATED_DOMAINS] = content;
  
    return newEntitlements;
  }
docs: Inject list of hosts into entitlements file.
  
  @param {Object} currentEntitlements - entitlements where to inject preferences
  @param {Object} pluginPreferences - list of hosts from config.xml
  @return {Object} new entitlements content