}
}
}
// Retrieve and validate the unshared session bean
UnsharedSessionBean usb = null;
if (ok) {
Object object = session.getAttribute("unsharedSessionBean");
if (object == null) {
writer.println("Session03 FAILED - Cannot retrieve usb");
ok = false;
} else if (!(object instanceof UnsharedSessionBean)) {
writer.println("Session03 FAILED - Unshared attribute class "
+ object.getClass().getName());
ok = false;
} else {
usb = (UnsharedSessionBean) object;
String value = usb.getStringProperty();
if (!"Session01".equals(value)) {
writer.println("Session03 FAILED - Unshared property = "
+ value);
ok = false;
} else {
session.removeAttribute("unsharedSessionBean");
String lifecycle = usb.getLifecycle();
if (!"/vb/swp/sda/vu".equals(lifecycle)) {
writer.println("Session03 FAILED - Unshared lifecycle"
+ " = " + lifecycle);
ok = false;
}