Add SampleAgent in Java