String root = request.getRealPath("./");
if (root.replace('\\','/').endsWith("/."))
root = root.substring(0, root.length()-2);
root = PathUtils.clean(root);
for (int i = 0; i < list.size(); i++) {
FragmentDescriptor fd = list.get(i);
if (fd instanceof AbsolutePathFragment) {
String filename = ((AbsolutePathFragment) fd).getFilePath();
filename = PathUtils.getRelpath(filename, root);
ExternalFragment newFragment = new ExternalFragment(filename);
list.remove(i);