Tab tab = new Tab(tabName, Layout.THREECOLUMN);
Person person = personMapper.findByAccountId(inActionContext.getPrincipal().getAccountId());
person.addTab(tab, TabGroupType.START);
// because the caller relies on tabIndex being set properly, we have to
// flush, then clear the entity manager so we can reget the updated
// Tab's new tabIndex
personMapper.flush();