Example 2
References:
Java Formatter tutorial
Java Formatter API documentation
Build.java
Now.java