@Override public ProfileSummary get(int id) { ProfileSummary profileSummary = profilePersister.getProfileSummary(id); if (profileSummary == null) { throw new NotFoundException(); } if (!authService.canRead(profileSummary.getProfile())) { throw new NotAuthorizedException(); } return profileSummary; }