https://watanyasponge.com/2020/09/23/java-ingest-recipes-4/