code: public InputStream fillTemplate(String filename, Collection<SimpleParameterEntry> parameters) throws IOException
     {
        Map<String, String> map = new HashMap<String, String>();
        for (SimpleParameterEntry parameterEntry : parameters)
        {
           map.put(parameterEntry.getName(), parameterEntry.getValue());
        }
        return fillTemplate(filename, map);
     }
docs: Reads configuration file from file-system and replaces all the occurrences of template-variables
  (like : "${parameter.name}") with values provided in the map.
  
  @param filename
  @param parameters
  @return
  @throws IOException