class SimpleEngineManager implements EngineManager {

    @Override
    public Optional<User> retrieveUser(String engine, String username) {
        log.debug("Retrieving user with " + engine);
        if (engines.containsKey(engine)) {
            return engines.get(engine).retrieveUser(username);
        }
        return Optional.empty();
    }

}