URL parentRoot = pParent.getResource("");
URL root = URLUtil.normalizeToFileProtocol(parentRoot);
root = (URL) ObjectUtils.defaultIfNull(root, parentRoot);
try {
if (root != null) {
stores = new ResourceStore[]{new FileResourceStore(new File(root.toURI()))};
} else {
throw new XWorkException("Unable to start the reloadable class loader, consider setting 'struts.convention.classes.reload' to false");
}
} catch (URISyntaxException e) {
throw new XWorkException("Unable to start the reloadable class loader, consider setting 'struts.convention.classes.reload' to false", e);