paramPut("approvalRequest.ID", approvalRequestID.toString());
paramPut("approvalRequest.ID", approvalRequestID);
  private void populate(String userUsername, String userPassword, String userDN, 		                Date approvalRequestDate, Integer approvalRequestID, String approvalRequestType,		                Integer numberOfApprovalLeft, String approvalRequestURL, String approveComment,		                String requestAdminUsername, String requestAdminDN,		                String approvalAdminUsername, String approvalAdminDN){      params.put("NL", System.getProperty("line.separator"));      String date = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(new Date());      params.put("DATE", date);      paramPut("USERNAME", userUsername);      paramPut("user.USERNAME", userUsername);      paramPut("PASSWORD", userPassword);      paramPut("user.PASSWORD", userPassword);      if(userDN != null){    	  userDN = "";      }	  DNFieldExtractor dnfields = new DNFieldExtractor(userDN, DNFieldExtractor.TYPE_SUBJECTDN);	  paramPut("CN", dnfields.getField(DNFieldExtractor.CN, 0));	  paramPut("user.CN", dnfields.getField(DNFieldExtractor.CN, 0));	  paramPut("SN", dnfields.getField(DNFieldExtractor.SN, 0));	  paramPut("user.SN", dnfields.getField(DNFieldExtractor.SN, 0));	  paramPut("O", dnfields.getField(DNFieldExtractor.O, 0));	  paramPut("user.O", dnfields.getField(DNFieldExtractor.O, 0));	  paramPut("OU", dnfields.getField(DNFieldExtractor.OU, 0));	  paramPut("user.OU", dnfields.getField(DNFieldExtractor.OU, 0));	  paramPut("C", dnfields.getField(DNFieldExtractor.C, 0));	  paramPut("user.C", dnfields.getField(DNFieldExtractor.C, 0));	  	  	  if(approvalRequestDate != null){		  String requestDate = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(approvalRequestDate);		  params.put("approvalRequest.DATE", requestDate);	      	  }else{		  params.put("approvalRequest.DATE", "");		  }	  		  	  paramPut("approvalRequest.ID", approvalRequestID.toString());	      	  	  paramPut("approvalRequest.TYPE", approvalRequestType);	      	 	  		  	  paramPut("approvalReqiest.APPROVALSLEFT", numberOfApprovalLeft.toString());	      	  	  	  		  	  paramPut("approvalRequest.APROVEURL", approvalRequestURL);	      	  paramPut("approvalRequest.APPROVALCOMMENT", approveComment);	      	  paramPut("requestAdmin.USERNAME", requestAdminUsername);	  	  if(requestAdminDN != null){		  requestAdminDN = "";	  }	  dnfields = new DNFieldExtractor(requestAdminDN, DNFieldExtractor.TYPE_SUBJECTDN);	      	  paramPut("requestAdmin.CN", dnfields.getField(DNFieldExtractor.CN, 0));	      	  paramPut("requestAdmin.SN", dnfields.getField(DNFieldExtractor.SN, 0));	  paramPut("requestAdmin.O", dnfields.getField(DNFieldExtractor.O, 0));	  paramPut("requestAdmin.OU", dnfields.getField(DNFieldExtractor.OU, 0));	  paramPut("requestAdmin.C", dnfields.getField(DNFieldExtractor.C, 0));	  paramPut("requestAdmin.USERNAME", approvalAdminUsername);	  	  if(approvalAdminDN == null){		  approvalAdminDN = "";	  }	  dnfields = new DNFieldExtractor(approvalAdminDN, DNFieldExtractor.TYPE_SUBJECTDN);	      	  paramPut("approvalAdmin.CN", dnfields.getField(DNFieldExtractor.CN, 0));	      	  paramPut("approvalAdmin.SN", dnfields.getField(DNFieldExtractor.SN, 0));	  paramPut("approvalAdmin.O", dnfields.getField(DNFieldExtractor.O, 0));	  paramPut("approvalAdmin.OU", dnfields.getField(DNFieldExtractor.OU, 0));	  paramPut("approvalAdmin.C", dnfields.getField(DNFieldExtractor.C, 0));	    }