anchor.diff:              switch_to_oraclejdk8
               ;;
           default)
  -            switch_to_<%= node.java.default_version %>
  +            <% unless node['java']['default_version'].empty? %>
  +            switch_to_<%= node['java']['default_version'] %>
  +            <% else %>
  +            switch_to_openjdk7
  +            <% end %>
               ;;
           *)
               warn_jdk_not_known "$1"
  
positive.code: #!/bin/sh
  
  #
  # JDK switcher based on https://github.com/michaelklishin/jdk_switcher
  #
  
negative.code:         openjdk7|jdk7|1.7.0|1.7|7.0)
              switch_to_openjdk7
              ;;
          openjdk8|jdk8|1.8.0|1.8|8.0)
              switch_to_openjdk8
              ;;
          oraclejdk6|oraclejdk1.6|oraclejdk1.6.0|oracle6|oracle1.6.0|oracle6.0|sunjdk6|sun6)
  