@SuppressFBWarnings(value="DP_DO_INSIDE_DO_PRIVILEGED",justification="EV is run only from within unit tests") public Object callFactory(String factoryTypeName,String factoryMethod,Class<?>[] paramTypes,Object[] paramValues){
  try {
    Class<?> type=resolve();
    if (type == null) {
      return null;
    }
    Class<?> factoryType=Class.forName(factoryTypeName);
    Method factory=factoryType.getMethod(factoryMethod,paramTypes);
    factory.setAccessible(true);
    return factory.invoke(null,paramValues);
  }
 catch (  Exception e) {
    return handleException(e);
  }
}

@ SuppressFBWarnings ( value = "DP_DO_INSIDE_DO_PRIVILEGED" , justification = "EV is run only from within unit tests" ) public Object callFactory ( String factoryTypeName , String factoryMethod , Class < ? > [ ] paramTypes , Object [ ] paramValues ) { try { Class < ? > type = resolve ( ) ; if ( type == null ) { return null ; } Class < ? > factoryType = Class . forName ( factoryTypeName ) ; Method factory = factoryType . getMethod ( factoryMethod , paramTypes ) ; factory . setAccessible ( true ) ; return factory . invoke ( null , paramValues ) ; } catch ( Exception e ) { return handleException ( e ) ; } }
attempts to call a static factory method on a type .
