User user = UserData.getUser();
Page page = PageData.getPage(KeyFactory.stringToKey(pageEncoded));
Content content = ContentData.getContent(KeyFactory.stringToKey(encoded));
if(page.getId() != content.getPageId())
throw new ServerException();
int accessLevel = module.getAccessLevel(user.getRole());
if(accessLevel >= ModuleHelper.ADD_EDIT || (accessLevel == ModuleHelper.ADD && content.getOwner().equals(user))) {
ContentDTO contentDTO = content.getDTO();
contentDTO.setLocations(page.getLayout().getLocations());