Use new collaborations API for Java activities

[#79005958]