Java Agent
How to write a java agent