Added method to extract uri from ServletRequest object