Create class for Connection to the simulator. Updated the servlet for querying the simulator.