Added sample Java agent code