Map<String, Object> deserializedContent = (Map<String, Object>) ois.readObject();
Call retrivedCall = (Call) deserializedContent.get("call");
//I shoudl call the tracking component here and register the new emerency
Emergency emergency = new Emergency();
// String emergencyId = ContextTrackingServiceImpl.getInstance().newEmergencyId();
// emergency.setId(emergencyId);
emergency.setCall(retrivedCall);
emergency.setLocation(new Location(1, 2));
emergency.setType(Emergency.EmergencyType.HEART_ATTACK);
emergency.setNroOfPeople(1);
Map<String, Object> info = new HashMap<String, Object>();
info.put("emergency", emergency);