How to use counterparty API within java application?

how to use counterparty API within java application?