class SimpleEngineManager implements EngineManager {

    @Override
    public Optional<String> getUsername(Resource userIri) {
        for (User user: getUsers()) {
            if (user.getResource().equals(userIri)) {
                return user.getUsername().map(Value::stringValue);
            }
        }
        return Optional.empty();
    }

}