Only works with Java agent