protected void printMessage(final String message, final PrintStream stream,
                              final int priority)
  {
    init();

    if (message != null && stream != null)
    {
      switch (priority)
      {
      case Project.MSG_ERR:
        console.setColor(getErrColor());
        break;
      case Project.MSG_WARN:
        console.setColor(getWarnColor());
        break;
      case Project.MSG_INFO:
        console.setColor(getInfoColor());
        break;
      case Project.MSG_VERBOSE:
        console.setColor(getVerboseColor());
        break;
      case Project.MSG_DEBUG:
        // Fall through
      default:
        console.setColor(getDebugColor());
        break;
      }
      stream.println(message);
    }
  }