public String urlDecode(String toDecode){
  try {
    return URLDecoder.decode(toDecode,"utf-8");
  }
 catch (  Exception e) {
    LOG.error("Error url decoding " + toDecode + ": "+ e);
  }
  return toDecode;
}

public String urlDecode ( String toDecode ) { try { return URLDecoder . decode ( toDecode , "utf-8" ) ; } catch ( Exception e ) { LOG . error ( "Error url decoding " + toDecode + ": " + e ) ; } return toDecode ; }
url decodes the given string
