Splunk java example. It offers both manual and automatic instrumentation.