title: Read the return value of a method using javassist
body: <p>I want to read the return value of a method which  and I have to pass it to the code that I insert using method.insertAfter.</p>
  
  <p>Example:</p>
  
  <pre><code>public String sayHello(){
      return "1";
  }
  </code></pre>
  
  <p>I want to add the code say, someClass.someMethod() using javassist. </p>
  
  <pre><code>method.insertAfter("someClass.someMethod(&lt;how to add that value here&gt;);");
  </code></pre>
  
  <p>Can anyone let me know how to do this?</p>
  
  <p>[Edit]
  I cannot edit the method body since there might be other code present. The above method is just an example.</p>