Bug 62151: Fix warnings about illegal reflective access in Java 9+ by using a similar approach as Apache Hadoop via a CleanerUtil class which encapsulates the two different approaches for Java <= 8 and Java >= 9