@RequestMapping(value="/displaytransactions")
public synchronized ModelAndView listOfUTransactions(Principal principal) {
String name = principal.getName();
InternalAccount currentuser = intBo.findUserByusername(name);
if(currentuser.getDeptid() == 2){
ModelAndView modelAndView = new ModelAndView("ITlistInternalTransactions");
List<InternalUserTransaction> transactions = transactionBO.getDeptInternalUserTransactions(2); //2:IT dept
System.out.println(transactions.listIterator());
modelAndView.addObject("currentuser", currentuser);
modelAndView.addObject("transactions", transactions);