@SuppressWarnings("unchecked") public static Map<String,Object> loadStream(InputStream inputStream){
  LOG.fine("Reading config stream");
  Yaml yaml=new Yaml();
  Map<Object,Object> propsYaml=(Map<Object,Object>)yaml.load(inputStream);
  LOG.fine("Successfully read config");
  Map<String,Object> typedMap=new HashMap<>();
  for (  Object key : propsYaml.keySet()) {
    typedMap.put(key.toString(),propsYaml.get(key));
  }
  return typedMap;
}

@ SuppressWarnings ( "unchecked" ) public static Map < String , Object > loadStream ( InputStream inputStream ) { LOG . fine ( "Reading config stream" ) ; Yaml yaml = new Yaml ( ) ; Map < Object , Object > propsYaml = ( Map < Object , Object > ) yaml . load ( inputStream ) ; LOG . fine ( "Successfully read config" ) ; Map < String , Object > typedMap = new HashMap < > ( ) ; for ( Object key : propsYaml . keySet ( ) ) { typedMap . put ( key . toString ( ) , propsYaml . get ( key ) ) ; } return typedMap ; }
load config from the given yaml stream
