URL url = new URL(urlString);
URLConnection conn = url.openConnection();
conn.connect();
} catch (MalformedURLException e) {
// the URL is not in a valid form
throw new RegistryException("Given Axis2 Service URL : "
+ urlString + " is Invalid", e);
} catch (IOException e) {
// the connection couldn't be established
throw new RegistryException("Given Axis2 Service URL : "
+ urlString + " is Invalid", e);
}
return originalURL;
}