First try of java API client