private void validImageId(UUID embeddingId) {
        if (embeddingId == null) {
            throw new IncorrectImageIdException();
        }
    }
NOTE: current method returns COPY! Each time you invoke it, memory consumed, be careful!

@return copy of underlying embeddings array.
java/api/src/main/java/com/exadel/frs/core/trainservice/cache/EmbeddingCollection.java