protected static Map<String,String> loadStream(InputStream input) throws IOException {
  Properties props=new Properties();
  props.load(input);
  return new HashMap(props);
}

protected static Map < String , String > loadStream ( InputStream input ) throws IOException { Properties props = new Properties ( ) ; props . load ( input ) ; return new HashMap ( props ) ; }
loads mappings from a stream .
