Use Leiningen's built-in support for Java agents and simplify code