loginResponse = new ManagerResponse();
loginResponse.setResponse("Success");
}
else
{
loginResponse = new ManagerError();
loginResponse.setResponse("Error");
loginResponse.setMessage("Authentication failed");
}
loginResponse.setActionId(ManagerUtil.addInternalActionId(action.getActionId(), internalActionId));
dispatchLater(loginResponse);