question: @ SuppressWarnings ( "RedundantIfStatement" ) public static boolean loadByCurrentClassloader ( String clsName ) { if ( clsName . startsWith ( "org.apache.ignite.internal.processors.hadoop.impl" ) ) return true ; if ( clsName . startsWith ( "org.apache.ignite.hadoop" ) ) { if ( clsName . contains ( "org.apache.ignite.hadoop.fs.v1.IgniteHadoopFileSystem" ) || clsName . contains ( "org.apache.ignite.hadoop.fs.v2.IgniteHadoopFileSystem" ) || clsName . contains ( "org.apache.ignite.hadoop.mapreduce.IgniteHadoopClientProtocolProvider" ) ) return true ; } return false ; }
target:  Check whether file must be loaded with current class loader, or normal delegation model should be used. <p> Override is only necessary for Ignite classes which have direct or transitive dependencies on Hadoop classes. These are all classes from "org.apache.ignite.internal.processors.hadoop.impl" package, and these are several well-know classes from "org.apache.ignite.hadoop" package.