// MrBayes 从数据库中读入到页面中
 static void setParametersToRequestMrBayes(String userName, HttpServletRequest request) {
   MultipleAlignmentDefaultDAO madDAO = new MultipleAlignmentDefaultDAO();
   MultipleAlignmentDefault mad = madDAO.findByUserAndType(userName, MRBAYESTYPE);
   if (mad != null) {
     String defaultSetting = mad.getDefaultSetting();
     String[] parameters = defaultSetting.split(";");
     for (int i = 0; i < parameters.length; i++) {
       String[] paraValues = parameters[i].split("\\" + SEPERATEPARAMETERS);
       for (int j = 1; j < paraValues.length; j++) {
         if (paraValues[j] != null && !"".equals(paraValues[j])) {
           String[] pValues = paraValues[j].split(SEPERATEPARAMETERANDVALUE);
           if (pValues.length == 2) {
             request.setAttribute(paraValues[0] + SEPERATEPARANAME + pValues[0], pValues[1]);
           }
         }
       }
     }
   }
 }
  public static String getExeCommandStringFromRequest(HttpServletRequest request, int type) {

    if (request != null) {
      return getExeCommandStringFromRequest(request);
    } else {
      MultipleAlignmentDefaultDAO maDao = new MultipleAlignmentDefaultDAO();

      MultipleAlignmentDefault maDefault =
          maDao.findByUserAndType(
              SecurityContextHolder.getContext().getAuthentication().getName(), type);

      if (maDefault == null) {
        return "";
      }

      System.out.println(maDefault.toString());

      return maDefault.toString();
    }
  }