{
org.jboss.test.classloader.leak.clstore.ClassLoaderStore.getInstance().storeClassLoader("SERVLET", Thread.currentThread().getContextClassLoader());
org.jboss.test.classloader.leak.clstore.ClassLoaderStore.getInstance().storeClassLoader("SERVLET_TCCL", Thread.currentThread().getContextClassLoader());
HttpSession session = req.getSession();
Person ben = (Person) session.getAttribute("TEST_PERSON");
if (ben == null)
{
ben=new Person();
Address addr = new Address();
addr.setZip(95123);
addr.setCity("San Jose");
ben.setAge(100);
ben.setName("Ben");
ben.setAddress(addr);
List languages = new ArrayList();
languages.add("Farsi");
ben.setLanguages(languages);
session.setAttribute("TEST_PERSON", ben);
}
else
{
ben.setAge(ben.getAge() + 1);
ben.getLanguages().add("Java");
}
res.setContentType("text/text");
PrintWriter writer = res.getWriter();
writer.println("WEBAPP");