anchor.diff:  
   <%- if resource[:provider_type] == 'bower' -%>
   def bower = config.attributes('bower');
  -bower.set('rewritePackageUrls', '<%= resource[:rewrite_package_urls] %>');
  +bower.set('rewritePackageUrls', <%= to_boolean.call(resource[:rewrite_package_urls]) %>);
   <%- end -%>
   
   <%- if resource[:provider_type] == 'docker' -%>
   def dockerProxy = config.attributes('dockerProxy')
  -dockerProxy.set('cacheForeignLayers', '<%= resource[:cache_foreign_layers] %>')
  +dockerProxy.set('cacheForeignLayers', <%= to_boolean.call(resource[:cache_foreign_layers]) %>)
   dockerProxy.set('foreignLayerUrlWhitelist', <%= resource[:foreign_layers_url_whitelist] %>)
   dockerProxy.set('indexType', '<%= Puppet::Provider::Nexus3Utils::DOCKER_PROXY_INDEX_TYPE[resource[:index_type]] %>')
   <%- if resource[:index_type] == 'custom' -%>
  
positive.code: 
  <%- if resource[:provider_type] == 'npm' -%>
  def npm = config.attributes('npm');
  npm.set('removeNonCataloged', '<%= resource[:remove_non_cataloged] %>');
  npm.set('removeQuarantinedVersions', '<%= resource[:remove_quarantined_versions] %>');
  <%- end -%>
  
  <%- if resource[:provider_type] == 'nuget' -%>
  
negative.code: 
  <%- if resource[:provider_type] == 'docker' -%>
  def docker = config.attributes('docker')
  docker.set('v1Enabled', <%= to_boolean.call(resource[:v1_enabled]) %>)
  docker.set('forceBasicAuth', <%= to_boolean.call(resource[:force_basic_auth]) %>)
  <%- if defined? resource[:http_port] -%>
  docker.set('httpPort', '<%= resource[:http_port] %>')
  <%- end -%>
  