private void putWithValidation(String key,Object value) throws BitcoinURIParseException {
  if (parameterMap.containsKey(key)) {
    throw new BitcoinURIParseException(String.format("'%s' is duplicated, URI is invalid",key));
  }
 else {
    parameterMap.put(key,value);
  }
}

private void putWithValidation ( String key , Object value ) throws BitcoinURIParseException { if ( parameterMap . containsKey ( key ) ) { throw new BitcoinURIParseException ( String . format ( "'%s' is duplicated, URI is invalid" , key ) ) ; } else { parameterMap . put ( key , value ) ; } }
put the value against the key in the map checking for duplication . this avoids address field overwrite etc .
