/**
  * Retrieves representation of an instance of com.rajtech.resources.StatusResource
  *
  * @return an instance of javax.ws.rs.core.Response
  */
 @GET
 @Produces("application/json")
 public List<Status> getStatus() {
   status = sdi.listStatus();
   if (status.isEmpty()) return null;
   else return status;
 }
 /**
  * PUT method for updating or creating an instance of StatusResource
  *
  * @param content representation for the resource
  * @return an HTTP response with content of the updated or created resource.
  */
 @POST
 // @Consumes(MediaType.APPLICATION_JSON)
 @Produces("application/json")
 public void addStatus(@FormParam("statusname") String statusname, @FormParam("id") String id) {
   Status status = new Status();
   status.setStatus_id(Integer.parseInt(id));
   status.setStatusName(statusname);
   sdi.addStatus(status);
 }