private static String sourceForKey(final String key){
  String result="source";
  if (key != null && !key.equals("") && !key.equals("source")) {
    int i=key.indexOf(':');
    if (i == -1) {
      result="source:" + key;
    }
 else {
      result=key.substring(0,i) + ".source" + key.substring(i);
    }
  }
  return result;
}

private static String sourceForKey ( final String key ) { String result = "source" ; if ( key != null && ! key . equals ( "" ) && ! key . equals ( "source" ) ) { int i = key . indexOf ( ':' ) ; if ( i == - 1 ) { result = "source:" + key ; } else { result = key . substring ( 0 , i ) + ".source" + key . substring ( i ) ; } } return result ; }
given an edit field of an osm key value , determine it ' s corresponding source key . for example , the source of " name " is " source : name " . the source of " source " is " source " . the source of " mf : name " is " mf . source : name " .
