public static Class<?> loadClassSafe(final String klassName){
  try {
    return Class.forName(klassName);
  }
 catch (  ClassNotFoundException e) {
    return null;
  }
}

public static Class < ? > loadClassSafe ( final String klassName ) { try { return Class . forName ( klassName ) ; } catch ( ClassNotFoundException e ) { return null ; } }
loads a class with given klassname . returns null if the class could not be loaded .
