//Generate any messages required
ServiceUtil.getMessages(request, callResult, null);
// wipe the session
if (("anonymous".equals(currentUser.getString("userLoginId"))) || (currentUser.getString("userLoginId")).equals(userLogin.getString("userLoginId"))) {
session.invalidate();
}
//Determine whether it was a success or not
if (callResult.get(ModelService.RESPONSE_MESSAGE).equals(ModelService.RESPOND_ERROR)) {
result = (String) callResult.get(ModelService.ERROR_MESSAGE);
request.setAttribute("_ERROR_MESSAGE_", result);