title: Akka/Java getContext().become with parameter?
body: <p>In Akka/Scala one is able to pass parameters to the custom receive function, so it is possible to pass the whole actor state through params, without using mutable variables. </p>
  
  <pre><code>context.become(myCustomReceive(param1, param2))
  </code></pre>
  
  <p>But in Java Api you can pass only Procedure which gets the received message as the only param </p>
  
  <pre><code>getContext().become( new Procedure&lt;Object&gt; {
    public void apply(Object param) throws Exception
    {
      // ... 
    }
  }
  </code></pre>
  
  <p>Is there a clean way to do the same trick in Java?</p>