title: Save Web Service variable into MuleSoft Message
body: <p>I have an http endpoint redirecting to a REST Java web service.
  I am receiving a application/x-www-form-urlencoded request with some attributes embedded within the body of the request.</p>
  
  <p>Inside the web service I would like to update the mule message status with those attributes.
  Since RequestContext.getEventContext() is now deprecated and Doc says to implement Callable instead, however seems not working to me.The onCall method is never invoked.</p>
  
  <p>Any idea ?</p>
  
  <p>Below my code:</p>
  
  <pre><code>enter code here
  
      @Path("/restClass")
      public class HelloREST implements Callable{
      private String industry;
      private String lob;
      private String nuixlegalentity;
      private org.apache.log4j.Logger log = Logger.getLogger(LoadClass.class);
  
  @POST
  @Path("/setPayload")
  @Consumes("application/x-www-form-urlencoded")
  public void setMessage(@FormParam("industry") String industryParam, @FormParam("lob") String lobParam,@FormParam("nuixlegalentity") String nuixlegalentityParam){
  
      log.debug("**************INSIDE SETMESSAGE******************");
  
      industry=industryParam;
      lob=lobParam;
      nuixlegalentity=nuixlegalentityParam;
  
  
  }
  @Override 
  public Object onCall(MuleEventContext eventContext) throws Exception{
  
      log.debug("**************INSIDE ONCALL******************");
  
      eventContext.getSession().setProperty("industry","industry");
      eventContext.getSession().setProperty("lob",lob);
      eventContext.getSession().setProperty("nuixlegalentity",nuixlegalentity);
      return eventContext.getMessage();
  }
  
  }
  </code></pre>
  
  <p>}</p>