parse(cachedContents);
}
}
private byte[] getCachedFileContents() {
WsdlFileCache cache = getFileCache();
if (cache == null) {
return null;
}
try {
return cache.retrieve(getWsdlFile().getLocator());
} catch (DataCacheException e) {
// There is no need to communicate this error to the user,
// we just log it and download the file again.
String msg = "Failed to retrieved a cached WSDL file (\"" + getWsdlFile().getLocator() + "\"). Reason: ";
ErrorLog.log(ProcessExistingWsdlFile.class, msg, e);