def get_plugin(previous_plugin_info)
      if previous_plugin_info[:type] == :platform
        if PLUGINS.has_key?(previous_plugin_info[:name])
          @log.debug("Using #{previous_plugin_info[:name]} mapping")
          return PLUGINS[previous_plugin_info[:name]]
        else
          @log.debug("This plugin does not know what mappings to choose, so will assume default values where user values are not provided.")
        end
      end
      @log.debug("Using default domain mappings.")
      PLUGINS[:default]
    end
def get_plugin(previous_plugin_info)
      if previous_plugin_info[:type] == :platform
        if PLUGINS.has_key?(previous_plugin_info[:name])
          @log.debug("Using #{previous_plugin_info[:name]} mapping")
          return PLUGINS[previous_plugin_info[:name]]
        else
          @log.debug("This plugin does not know what mappings to choose, so will assume default values where user values are not provided.")
        end
      end
      @log.debug("Using default domain mappings.")
      PLUGINS[:default]
    end
At present we don't have enough meta-data to work with to easily generalise,
 so we have to assume defaults often. This is something to improve later.