A Java translation of the OREUtilsV2 plugin