@Override public void setCustomUserAvatar(ApplicationUser remoteUser, ApplicationUser user, Long avatarId) throws AvatarsDisabledException, NoPermissionException { if (!canSetCustomUserAvatar(remoteUser, user)) { throw new NoPermissionException(); } setConfiguredAvatarIdFor(user, avatarId); }