while (entry.hasMoreElements()) {
JarEntry ele = (JarEntry)entry.nextElement();
if (ele.getName().endsWith(".xsd")
&& ele.getName().indexOf(ToolConstants.CXF_SCHEMAS_DIR_INJAR) > -1) {
URIResolver resolver = new URIResolver(ele.getName());
if (resolver.isResolved()) {
InputSource is = new InputSource(resolver.getInputStream());
// Use the resolved URI of the schema if available.
// The ibm jdk won't resolve the schema if we set
// the id to the relative path.
if (resolver.getURI() != null) {
is.setSystemId(resolver.getURI().toString());
} else {
is.setSystemId(ele.getName());
}
xsdList.add(is);
}