code: private boolean doExecuteMavenEmbedded(final PrintStream out, final PrintStream err, final List<String> list)
     {
        // Have we asked for quiet mode?
        final boolean quiet = list.contains("-q") || list.contains("--quiet");
        final String[] params = list.toArray(new String[list.size()]);
        // Get root logger. Yes, it is an empty logger, Logger.getGlobal() doesn't work here
        final Logger globalLogger = Logger.getLogger(Strings.EMPTY);
        final Handler outHandler = new UncloseableStreamHandler(out, quiet);
        try
        {
           globalLogger.addHandler(outHandler);
           PrintStream oldout = System.out;
           PrintStream olderr = System.err;
           try
           {
              System.setOut(out);
              System.setErr(err);
              CliRequest cliRequest = createCliRequest(params, getFaceted().getRoot().getFullyQualifiedName());
              int returnCode = new MavenCli().doMain(cliRequest);
              return returnCode == 0;
           }
           finally
           {
              System.setOut(oldout);
              System.setErr(olderr);
           }
        }
        finally
        {
           globalLogger.removeHandler(outHandler);
        }
     }
docs: The embedded maven CLI uses the java logging API to output the log. <br/>
  Since we never write the log to the console, we need register a logging handler.
  
  @author <a href="ggastald@redhat.com">George Gastaldi</a>