@Nullable public static Class<?> classForName(@Nullable String cls,@Nullable Class<?> dflt,boolean includePrimitiveTypes){
  Class<?> clazz;
  if (cls == null)   clazz=dflt;
 else   if (!includePrimitiveTypes || cls.length() > 7 || (clazz=primitiveMap.get(cls)) == null) {
    try {
      clazz=Class.forName(cls);
    }
 catch (    ClassNotFoundException ignore) {
      clazz=dflt;
    }
  }
  return clazz;
}

@ Nullable public static Class < ? > classForName ( @ Nullable String cls , @ Nullable Class < ? > dflt , boolean includePrimitiveTypes ) { Class < ? > clazz ; if ( cls == null ) clazz = dflt ; else if ( ! includePrimitiveTypes || cls . length ( ) > 7 || ( clazz = primitiveMap . get ( cls ) ) == null ) { try { clazz = Class . forName ( cls ) ; } catch ( ClassNotFoundException ignore ) { clazz = dflt ; } } return clazz ; }
gets class for the given name if it can be loaded or default given class .
