anchor.diff:  
   <%- if resource[:provider_type] == 'npm' -%>
   def npm = config.attributes('npm');
  -npm.set('removeNonCataloged', '<%= resource[:remove_non_cataloged] %>');
  -npm.set('removeQuarantinedVersions', '<%= resource[:remove_quarantined_versions] %>');
  +npm.set('removeNonCataloged', <%= to_boolean.call(resource[:remove_non_cataloged]) %>);
  +npm.set('removeQuarantinedVersions', <%= to_boolean.call(resource[:remove_quarantined_versions]) %>);
   <%- end -%>
   
   <%- if resource[:provider_type] == 'nuget' -%>
  
positive.code: <%- else -%>
  httpclientConnection.set('timeout', '<%= resource[:remote_connection_timeout] %>');
  <%- end -%>
  httpclientConnection.set('enableCircularRedirects', '<%= resource[:remote_enable_circular_redirects] %>');
  httpclientConnection.set('enableCookies', '<%= resource[:remote_enable_cookies] %>');
  
  <%- if resource[:provider_type] == 'apt' -%>
  apt.set('flat', <%= resource[:is_flat] %>)
  
negative.code: proxy.set('contentMaxAge', '<%= resource[:content_max_age] %>')
  proxy.set('metadataMaxAge', '<%= resource[:metadata_max_age] %>')
  def negativeCache = config.attributes('negativeCache')
  negativeCache.set('enabled', <%= to_boolean.call(resource[:negative_cache_enabled]) %>)
  negativeCache.set('timeToLive', '<%= resource[:negative_cache_ttl] %>')
  def httpclient = config.attributes('httpclient');
  httpclient.set('blocked', <%= to_boolean.call(resource[:blocked]) %>);
  httpclient.set('autoBlock', <%= to_boolean.call(resource[:auto_block]) %>);
  <%- if resource[:remote_auth_type] == 'none' -%>
  httpclient.remove('authentication')
  <%- else -%>
  