class FileBasedUserRepository implements UserRepository<U> {

    @Override
    public Optional<String> findCredentialByUserName(String userName) {
        return credentials.get(userName);
    }

    public  FileBasedUserRepository(Class<U> userClass, ObjectMapper mapper, U defaultAdmin,
                                   Path usersPath, Path credentialsPath, boolean reloadOnChange);

}