code: private static String takeJavaCore() throws Throwable {
      logger.entry("takeJavaCore");
  
      String filePath;
      try {
        javaDumpMethod.invoke(null);
  
        File javacoreFile = getLatestJavacoreFile();
        filePath = javacoreFile.getAbsolutePath();
  
      } catch (final InvocationTargetException invocationException) {
        // Unpack invocation target exception and throw to outer catch block.
        throw (invocationException.getTargetException() == null) ? invocationException : invocationException.getTargetException();
      }
      logger.exit("takeJavaCore", (Object) filePath);
  
      return filePath;
    }
docs: Causes an JVM with the IBM com.ibm.jvm.Dump class present to take a java core.
  
  @return The file path for the generated java core file.
  @throws Throwable