public Pair<String,String> parse(String entry){
  if (entry.length() > 0) {
    Matcher m=pattern.matcher(entry);
    if (m.matches()) {
      String name=m.group(1);
      String value=m.group(2);
      if (name != null) {
        name=name.trim();
        if (value == null) {
          value="";
        }
 else {
          value=value.trim();
        }
        return Pair.of(name,value);
      }
    }
  }
  return null;
}

public Pair < String , String > parse ( String entry ) { if ( entry . length ( ) > 0 ) { Matcher m = pattern . matcher ( entry ) ; if ( m . matches ( ) ) { String name = m . group ( 1 ) ; String value = m . group ( 2 ) ; if ( name != null ) { name = name . trim ( ) ; if ( value == null ) { value = "" ; } else { value = value . trim ( ) ; } return Pair . of ( name , value ) ; } } } return null ; }
pass in a single string of the form " [ name ] = value " to this function and get back a pair object , containing the name and value ( split out into members of the pair ) .
