throw new IllegalStateException("Not applicable operation");
}
@Override
void remove(long actor, String request) {
InboxMessage message = messageRepository.findOne(Long.valueOf(getInternalId(request)));
if (message.getTo().getId() != actor) {
throw new AccessDenied("Could not remove inbox item owned by other user");
}
messageRepository.delete(message);
}