Java chnanges for merging of two url.