    # File lib/chef/provider/package/macports.rb, line 5
            def load_current_resource
              @current_resource = Chef::Resource::Package.new(@new_resource.name)
              @current_resource.package_name(@new_resource.package_name)

              @current_resource.version(current_installed_version)
              Chef::Log.debug("#{@new_resource} current version is #{@current_resource.version}") if @current_resource.version

              @candidate_version = macports_candidate_version

              if !@new_resource.version and !@candidate_version
                raise Chef::Exceptions::Package, "Could not get a candidate version for this package -- #{@new_resource.name} does not seem to be a valid package!"
              end

              Chef::Log.debug("#{@new_resource} candidate version is #{@candidate_version}") if @candidate_version

              @current_resource
            end