private Expression determineDelegate()

in src/main/java/com/epam/eco/commons/avro/avpath/DelegatingEvaluationExpression.java [52:61]


    private Expression<?> determineDelegate(Object object) {
        for (Expression<?> delegate : delegates) {
            if (delegate.accepts(object)) {
                return delegate;
            }
        }

        throw new RuntimeException(
                String.format("Can't determine delegate to evaluate %s", object));
    }