try
{
request.getSession().removeAttribute("snapshot");
MemorySnapshotEngine snapshot = new MemorySnapshotEngine();
snapshot.processFiles(basicFile,extension);
MemorySnapshotController controller = new MemorySnapshotController(snapshot);
request.getSession().setAttribute("snapshot",controller);
response.sendRedirect("./memory/roots.jsp");
}
catch (Exception e)