JAL-2795 changed getting index of identifier to Stream (moved to Java 8)