private static Object newInstanceNoServiceLoader(Class<?> providerClass){
  if (System.getSecurityManager() == null) {
    return null;
  }
  try {
    Method creationMethod=providerClass.getDeclaredMethod("newXMLSchemaFactoryNoServiceLoader");
    return creationMethod.invoke(null,(Object[])null);
  }
 catch (  NoSuchMethodException exc) {
    return null;
  }
catch (  Exception exc) {
    return null;
  }
}

private static Object newInstanceNoServiceLoader ( Class < ? > providerClass ) { if ( System . getSecurityManager ( ) == null ) { return null ; } try { Method creationMethod = providerClass . getDeclaredMethod ( "newXMLSchemaFactoryNoServiceLoader" ) ; return creationMethod . invoke ( null , ( Object [ ] ) null ) ; } catch ( NoSuchMethodException exc ) { return null ; } catch ( Exception exc ) { return null ; } }
try to construct using newtransformerfactorynoserviceloader method if available .
