public static Map<String,String> toMap(String source){
  HashMap<String,String> responses=new HashMap<String,String>();
  String values[]=source.split(";");
  for (  String value : values) {
    String nv[]=value.split("=");
    if (nv.length >= 2) {
      responses.put(nv[0],nv[1]);
    }
 else     if (nv.length == 1) {
      responses.put(nv[0],null);
    }
  }
  return responses.size() != 0 ? responses : null;
}

public static Map < String , String > toMap ( String source ) { HashMap < String , String > responses = new HashMap < String , String > ( ) ; String values [ ] = source . split ( ";" ) ; for ( String value : values ) { String nv [ ] = value . split ( "=" ) ; if ( nv . length >= 2 ) { responses . put ( nv [ 0 ] , nv [ 1 ] ) ; } else if ( nv . length == 1 ) { responses . put ( nv [ 0 ] , null ) ; } } return responses . size ( ) != 0 ? responses : null ; }
converts the results of an " info " command to a map
