api for trinity using java/jersey