InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(resource);
if (in != null) {
try {
properties.load(in);
} catch (IOException ex) {
throw new XWSSecurityException(ex);
}
} else {
//throw new XWSSecurityException("Resource " + resource + " could not be located in classpath");
}
}