code: protected String generateProjectName(CmsObject userCms, boolean shortTime) {
  
          CmsUser user = userCms.getRequestContext().getCurrentUser();
          long time = System.currentTimeMillis();
          Date date = new Date(time);
          OpenCms.getLocaleManager();
          Locale locale = CmsLocaleManager.getDefaultLocale();
          DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale);
          DateFormat timeFormat = DateFormat.getTimeInstance(shortTime ? DateFormat.SHORT : DateFormat.MEDIUM, locale);
          String dateStr = dateFormat.format(date) + " " + timeFormat.format(date);
          String username = user.getName();
          String result = Messages.get().getBundle(locale).key(Messages.GUI_WORKFLOW_PROJECT_NAME_2, username, dateStr);
          result = result.replaceAll("/", "|");
  
          return result;
      }
docs: Generates the name for a new workflow project based on the user for whom it is created.<p>
  
  @param userCms the user's current CMS context
  @param shortTime if true, the short time format will be used, else the medium time format
  
  @return the workflow project name