docs: private void initialize(final File logDirectory, final String aaplName) {
          if (logDirectory == null) {
              captureEnabled = false;
              return;
          }
  
          AccessController.doPrivileged(new PrivilegedAction<Void>() {
              @Override
              public Void run() {
                  // Create a new or reuse an existing base capture directory
                  String captureDirStr = "JPATransform" + "/" + ((aaplName != null) ? aaplName : "unknownapp");
                  captureRootDir = new File(logDirectory, captureDirStr);
                  captureEnabled = captureRootDir.mkdirs() || captureRootDir.isDirectory();
  
                  if (!captureEnabled) {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(tc, "Cannot create server instance capture directory, so enhanced entity bytecode will not be captured.");
                      }
                  } else {
                      if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                          Tr.debug(tc, "Capturing enhanced bytecode for JPA entities to " + captureRootDir.getAbsolutePath());
                      }
                  }
  
                  return null;
              }
          });
      }