return f.exists();
}
public static OMNode getOMElementFromURI(String wsdlURI) throws CSGException {
if (wsdlURI == null || "null".equals(wsdlURI)) {
throw new CSGException("Can't create URI from a null value");
}
URL url;
try {
url = new URL(wsdlURI);
} catch (MalformedURLException e) {
throw new CSGException("Invalid URI reference '" + wsdlURI + "'");
}
URLConnection connection;
connection = getURLConnection(url);
if (connection == null) {
throw new CSGException("Cannot create a URLConnection for given URL : " + url);
}
connection.setReadTimeout(getReadTimeout());
connection.setConnectTimeout(getConnectTimeout());
connection.setRequestProperty("Connection", "close"); // if http is being used
InputStream inStream = null;