Java Example using API Client and Object Model Libraries