Removed the use of regex to validate a url (does not work for all cases). Replaced with org.apache.commons.validator.routines library.