code: private Toolchain getToolchain() {
      Toolchain toolChain = null;
      final ToolchainManager toolchainManager = ((NarJavahMojo) this.mojo).getToolchainManager();
  
      if (toolchainManager != null) {
        toolChain = toolchainManager.getToolchainFromBuildContext("jdk", ((NarJavahMojo) this.mojo).getSession());
      }
      return toolChain;
    }
docs: 2.0.9 (have it as prerequisite). Define as regular component field then.