anchor.diff:    <artifactId>killbill-client-java</artifactId>
     <version>... release version ...</version>
    </dependency>
  + 
  + 
    
   == Writing the Java code
   
  
positive.code: 
  == Setting up the Kill Bill Java client
  
  The first step in setting up the Kill Bill Java client is to add the following Maven dependency related to the Kill Bill client to your POM file. 
  
  [source,xml]
   <dependency>
  
negative.code: 
  * Finally, the code invokes the `AccountApi#getPaymentMethodsForAccount` method. This returns the payment methods corresponding to the specified `accountId`.
  
  == Using the sample code
  
  The complete source code used in this example is available at https://github.com/killbill/killbill-client-java-example[this] Github location. You can clone it in order to get started with your application. For detailed instructions on how to set up the code in Eclipse IDE, you can refer to our https://docs.killbill.io/latest/development.html#_setting_up_code_in_an_ide[development] document.
  
  == Executing the code
  
  In order to execute this code, you need to ensure Kill Bill is running (either on https://docs.killbill.io/latest/getting_started.html#_aws_one_click[AWS] or via https://docs.killbill.io/latest/getting_started.html#_docker[Docker] or in https://docs.killbill.io/latest/getting_started.html#_tomcat[Tomcat]) or https://docs.killbill.io/latest/development.html#_running_the_application[standalone] and execute the code specified above.
  
  == TroubleShooting
  
  In case you face an error in executing the code, you can take a look at the Kill Bill logs to obtain additional information about the error. The Kill Bill log files can be configured as explained https://docs.killbill.io/latest/development.html#_customizing_log_file_path[here]. It may also be useful to set a break point and debug the code as explained https://docs.killbill.io/latest/development.html#_setting_up_a_breakpoint_and_remote_debugging[here]. 
  
  