class RepositoryUserService implements UserService {

    @Override
    public UserData getUserData(@NonNull User user) {
        var data = dataRepo.findByUser(user)
                .orElseThrow(() -> new UserDataNotFoundException(user.getId()));

        return initializeThumbnailPhotos(Collections.singletonList(data))
                .get(0);
    }

    public  RepositoryUserService(UserRepository userRepo,
                                 UserDataRepository dataRepo,
                                 LdapAdapter ldapAdapter,
                                 HierarchyTreeNodeRepository hierarchyTreeNodeRepo,
                                 HibernateSearchService hibernateSearchService);

}