code: static Object getMemento(LifecycleModuleBuilder source) throws Exception {
          Field sessionScopeFiled = source.getClass().getDeclaredField("sessionScope");
          sessionScopeFiled.setAccessible(true);
          Object sessionScope = sessionScopeFiled.get(source);
          Method mementoMethod = sessionScope.getClass().getDeclaredMethod("memento");
          mementoMethod.setAccessible(true);
          return mementoMethod.invoke(sessionScope);
      }
docs: Read using reflection the SessionScope of the {@link org.apache.maven.lifecycle.internal.LifecycleModuleBuilder}.
  @param source    The {@link org.apache.maven.lifecycle.internal.LifecycleModuleBuilder}
  @return          The {@link org.apache.maven.session.scope.internal.SessionScope.Memento}
  @throws Exception