title: How to add Map<String, string> into Map<String, List<Object>> in java
body: <pre><code>public Map&lt;String, List&lt;PatientInfo&gt;&gt; getPatients(String sendingApplication,String sendingFacility) {
          // TODO Auto-generated method stub
          Map&lt;String, List&lt;PatientInfo&gt;&gt; patientMap = null;
          List&lt;PatientInfo&gt; patientList = null;
          patientMap = new HashMap&lt;String, List&lt;PatientInfo&gt;&gt;();
          patientList = new ArrayList&lt;PatientInfo&gt;();
          try {
          PatientInfoDAO patientInfoDAO = new PatientInfoDAOImpl();
          ItemCollection&lt;QueryOutcome&gt; items = patientInfoDAO.getPatients(sendingApplication, sendingFacility);
  
          for(Item item : items){
              PatientInfo patient = new PatientInfo();
              patient.setAdministrativeSex(item.getString(""));
              patient.setFamilyName(item.getString("FAMILYNAME"));
              patient.setGivenName(item.getString("GIVENNAME"));
              patient.setAdmitDateOrTime(item.getString("GENDER"));
              patient.setAssignedPatientLocationBuilding(item.getString("USERNAME"));
              patient.setAssignedPatientLocationFloor(item.getString("PASSWORD"));
              patient.setAssignedPatientLocationPersonLocationType(item.getString("USERROLE"));
              patient.setAssignedPatientLocationRoom(item.getString("USERSTATUS"));
              patient.setAsssignedPatientLocationBed(item.getString("EMAIL"));
              patient.setAttendingDoctor(item.getString("EMROPERATOR"));
              patient.setClientId(item.getString("clientId"));
              patient.setDateOrTimeOfMessage(item.getString("dateOrTimeOfMessage"));
              patient.setDischargeDateOrTime(item.getString("dischargeDateOrTime"));
              patient.setDob(item.getString("dob"));
              patient.setEventOccuredTime(item.getString("eventOccuredTime"));
              patient.setImageUrl(item.getString("imageUrl"));
              patient.setLastModifiedOn(item.getString("lastModifiedOn"));
              patient.setMessageControlId(item.getString("messageControlId"));
              patient.setNrPatientId(item.getString("nrPatientId"));
              patient.setPatientId(item.getString("patientId"));
              patient.setPatientStatus(item.getString("patientStatus"));
              patient.setPriorPatientLocationBed(item.getString("priorPatientLocationBed"));
              patient.setPriorPatientLocationBuilding(item.getString("priorPatientLocationBuilding"));
              patient.setPriorPatientLocationFloor(item.getString("priorPatientLocationFloor"));
              patient.setPriorPatientLocationPersonLocationType(item.getString("priorPatientLocationPersonLocationType"));
              patient.setPriorPatientLocationPointOfCare(item.getString("priorPatientLocationPointOfCare"));
              patient.setPriorPatientLocationRoom(item.getString("priorPatientLocationRoom"));
              patient.setReceivingFacility(item.getString("receivingFacility"));
              patient.setRecevingApplication(item.getString("recevingApplication"));
              patient.setSendingApplicaation(item.getString("sendingApplicaation"));
              patient.setSendingFacility(item.getString("sendingFacility"));
  
              patientList.add(patient);
          }
  
          String date = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
          patientMap.put("PATIENTLIST", patientList);
          patientMap.put("LASTKEY", date);
  
  
          return patientMap;
  
          }catch(AmazonServiceException ase){
  
              throw new RuntimeException("internalServerError");
          }catch(AmazonClientException ase){
  
              throw new RuntimeException("internalServerError");
          }
      }       
  </code></pre>
  
  <p>In this scenario i couldn't add String of date into Map>? </p>