private Long deleteView(Long id, PersistenceManager manager, User user)
throws ServiceException {
PersistentView persistentView = getPersistentView(id, manager);
if (!persistentView.getUserId().equals(user.getUserId())) {
throw new AuthenticationException(
"Authentication failed: Tsk Tsk, no trying to delete others views. UID should have been "
+ persistentView.getUserId()
+ ", but was "
+ user.getUserId());
}