@RequestMapping(value="/displayExternalUsersAccounts")
public synchronized ModelAndView listOfExternalUserAccounts( Principal principal) {
String name = principal.getName();
InternalAccount currentuser = intBo.findUserByusername(name);
if(currentuser.getDeptid() == 3){
ModelAndView modelAndView = new ModelAndView("ListExternalUserAccounts");
List<ExternalAccount> externalAccounts = externalAccountBO.getAllExternalUserAccounts();
ExternalAccount accountbyname = new ExternalAccount();
modelAndView.addObject("accountbyname", accountbyname);
modelAndView.addObject("externalAccounts", externalAccounts);