How do I write a Java class that runs on the EPAgent?