code: public static String generateJavaCore() throws Throwable {
      final String filePath;
      if (javaDumpMethod != null) {
        // If javaDumpMethod has been assigned a value then the JVM
        // appears to have the appropriate IBM Java classes to take
        // a java core.
        filePath = takeJavaCore();
      } else {
        // For JVMs which don't have the IBM value-add function for taking
        // java cores, use a portal method for dumping thread stack traces
        filePath = simulateJavaCore();
      }
  
      return filePath;
    }
docs: Public method that allows the caller to ask that a javacore be generated.
  
  @return The file path for the generated java core file.
  @throws Throwable