class PreferencesRepository {

    public Optional<PlayerPreferences> findBy(Specification specification) {
        return specification.append(ebeanServer.find(PlayerPreferences.class)).findOneOrEmpty();
    }

}