API:Client code/Java/pl