code: private static Map<String, String[]> getSynonyms(InputStream config) throws IOException
     {
        try
        {
           Map<String, String[]> synonyms = new HashMap<String, String[]>();
           Properties props = new Properties();
           props.load(config);
           Iterator<Map.Entry<Object, Object>> it = props.entrySet().iterator();
           while (it.hasNext())
           {
              Map.Entry<Object, Object> e = it.next();
              String key = (String)e.getKey();
              String value = (String)e.getValue();
              addSynonym(key, value, synonyms);
              addSynonym(value, key, synonyms);
           }
           return synonyms;
        }
        catch (Exception e)
        {
           throw Util.createIOException(e);
        }
     }
docs: Reads the synonym properties file and returns the contents as a synonym
  Map.
  
  @param config the synonym properties file.
  @return a Map containing the synonyms.
  @throws IOException if an error occurs while reading from the file system
  resource.