MappingSet mappingSet = (MappingSet) mappingSetFromSession;
mappingSet.reload(locale, session);
Object oldInteractionListId = req.getSession().getAttribute("oldInteractionListId");
if (oldInteractionListId == null || !(oldInteractionListId instanceof Long)){
throw new InputException(getResources(req).getMessage(locale, "admin.entryNotAvailable"),"old fragment entry not found in session",null,null);
}
Fragment oldFragment = new SmsDbManager(locale,session).getFragment((Long)oldInteractionListId);
if (oldFragment == null){
throw new InputException(getResources(req).getMessage(locale, "admin.entryNotAvailable"),"old fragment entry #" + oldInteractionListId + " not found",null,null);
}
checkAccessRights(req,oldFragment.getGroup(),null);
Object newEntry = req.getSession().getAttribute("newInteractionList");
if (newEntry == null || !(newEntry instanceof Fragment)){
throw new InputException(getResources(req).getMessage(locale, "admin.entryNotAvailable"),"new fragment entry not found in session",null,null);
}
// reload references in current session
Fragment newFragment = (Fragment)newEntry;
f.initialize(newFragment,locale,session,getResources(req));