gt: 		    if (reportInfoList.isSetAcknowledged()) {
context: /******************************************************************************* 
   *  Copyright 2009 Amazon Services.
   *  Licensed under the Apache License, Version 2.0 (the "License"); 
   *  
   *  You may not use this file except in compliance with the License. 
   *  You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
   *  This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
   *  CONDITIONS OF ANY KIND, either express or implied. See the License for the 
   *  specific language governing permissions and limitations under the License.
   * ***************************************************************************** 
   *
   *  Marketplace Web Service Java Library
   *  API Version: 2009-01-01
   *  Generated: Wed Feb 18 13:28:48 PST 2009 
   * 
   */
  
  package com.amazonaws.mws.samples;
  
  import java.io.FileInputStream;
  import java.util.Properties;
  
  import com.amazonaws.mws.MarketplaceWebService;
  import com.amazonaws.mws.MarketplaceWebServiceClient;
  import com.amazonaws.mws.MarketplaceWebServiceConfig;
  import com.amazonaws.mws.MarketplaceWebServiceException;
  import com.amazonaws.mws.model.GetReportListRequest;
  import com.amazonaws.mws.model.GetReportListResponse;
  import com.amazonaws.mws.model.GetReportListResult;
  import com.amazonaws.mws.model.ReportInfo;
  import com.amazonaws.mws.model.ResponseMetadata;
  
  /**
   *
   * Get Report List Samples
   *
   *
   */
  public class GetReportListSample {
  
      /**
       * Just add a few required parameters, and try the service Get Report List
       * functionality
       *
       * @param args
       *            unused
       */
      public static void main(String... args) {
  
  	/************************************************************************
  	 * Access Key ID and Secret Access Key ID, obtained from:
  	 * http://aws.amazon.com
  	 ***********************************************************************/
  	String accessKeyId = "<Your Access Key ID>";
  	String secretAccessKey = "<Your Secret Access Key>";
  
  	String appName = "<Your Application or Company Name>";
  	String appVersion = "<Your Application Version or Build Number or Release Date>";
  	MarketplaceWebService service = null;
  	String merchantId = "<Your Merchant ID>";
  	String sellerDevAuthToken = "<Merchant Developer MWS Auth Token>";
  	MarketplaceWebServiceConfig config = new MarketplaceWebServiceConfig();
  	Properties prop = new Properties();
  	FileInputStream is;
  	try {
  	    is = new FileInputStream("Amazon.properties");
  
  	    prop.load(is);// ("./Amazon.properties");
  	    accessKeyId = prop.getProperty("accessKeyId");
  	    secretAccessKey = prop.getProperty("secretAccessKey");
  	    appName = prop.getProperty("appName");
  	    appVersion = prop.getProperty("appVersion");
  	    merchantId = prop.getProperty("sellerID");
  	    sellerDevAuthToken = prop.getProperty("marketPlaceID");
  	    service = new MarketplaceWebServiceClient(accessKeyId,
  		    secretAccessKey, appName, appVersion, config);
  	} catch (Exception e) {
  	    // TODO Auto-generated catch block
  	    e.printStackTrace();
  	}
  	/************************************************************************
  	 * Uncomment to set the appropriate MWS endpoint.
  	 ************************************************************************/
  	// US
  	config.setServiceURL("https://mws.amazonservices.com");
  	// UK
  	// config.setServiceURL("https://mws.amazonservices.co.uk");
  	// Germany
  	// config.setServiceURL("https://mws.amazonservices.de");
  	// France
  	// config.setServiceURL("https://mws.amazonservices.fr");
  	// Italy
  	// config.setServiceURL("https://mws.amazonservices.it");
  	// Japan
  	// config.setServiceURL("https://mws.amazonservices.jp");
  	// China
  	// config.setServiceURL("https://mws.amazonservices.com.cn");
  	// Canada
  	// config.setServiceURL("https://mws.amazonservices.ca");
  	// India
  	// config.setServiceURL("https://mws.amazonservices.in");
  
  	/************************************************************************
  	 * You can also try advanced configuration options. Available options
  	 * are:
  	 *
  	 * - Signature Version - Proxy Host and Proxy Port - User Agent String
  	 * to be sent to Marketplace Web Service
  	 *
  	 ***********************************************************************/
  
  	/************************************************************************
  	 * Instantiate Http Client Implementation of Marketplace Web Service
  	 ***********************************************************************/
  
  	/************************************************************************
  	 * Uncomment to try out Mock Service that simulates Marketplace Web
  	 * Service responses without calling Marketplace Web Service service.
  	 *
  	 * Responses are loaded from local XML files. You can tweak XML files to
  	 * experiment with various outputs during development
  	 *
  	 * XML files available under com/amazonaws/mws/mock tree
  	 *
  	 ***********************************************************************/
  	// MarketplaceWebService service = new MarketplaceWebServiceMock();
  
  	/************************************************************************
  	 * Setup request parameters and uncomment invoke to try out sample for
  	 * Get Report List
  	 ***********************************************************************/
  
  	/************************************************************************
  	 * Marketplace and Merchant IDs are required parameters for all
  	 * Marketplace Web Service calls.
  	 ***********************************************************************/
  
  	GetReportListRequest request = new GetReportListRequest();
  	request.setMerchant(merchantId);
  	request.setMWSAuthToken(sellerDevAuthToken);
  
  	// @TODO: set request parameters here
  
  	invokeGetReportList(service, request);
  
      }
  
      /**
       * Get Report List request sample returns a list of reports; by default the
       * most recent ten reports, regardless of their acknowledgement status
       * 
       * @param service
       *            instance of MarketplaceWebService service
       * @param request
       *            Action to invoke
       */
      public static void invokeGetReportList(MarketplaceWebService service,
  	    GetReportListRequest request) {
  	try {
  		GetReportSample report = new GetReportSample();
  		
  	    GetReportListResponse response = service.getReportList(request);
  
  	    System.out.println("GetReportList Action Response");
  	    System.out
  		    .println("=============================================================================");
  	    System.out.println();
  
  	    System.out.print("    GetReportListResponse");
  	    System.out.println();
  	    if (response.isSetGetReportListResult()) {
  		System.out.print("        GetReportListResult");
  		System.out.println();
  		GetReportListResult getReportListResult = response
  			.getGetReportListResult();
  		if (getReportListResult.isSetNextToken()) {
  		    System.out.print("            NextToken");
  		    System.out.println();
  		    System.out.print("                "
  			    + getReportListResult.getNextToken());
  		    System.out.println();
  		}
  		if (getReportListResult.isSetHasNext()) {
  		    System.out.print("            HasNext");
  		    System.out.println();
  		    System.out.print("                "
  			    + getReportListResult.isHasNext());
  		    System.out.println();
  		}
  		
  		java.util.List<ReportInfo> reportInfoListList = getReportListResult
  			.getReportInfoList();
  		for (ReportInfo reportInfoList : reportInfoListList) {
  		    System.out.print("            ReportInfoList");
  		    System.out.println();
  		    if (reportInfoList.isSetReportId()) {
  			System.out.print("                ReportId");
  			// go get the xml report content
  			if( "_GET_FLAT_FILE_ORDERS_DATA".equals(reportInfoList.getReportType()))
  					report.getReports(reportInfoList.getReportId());
  			System.out.println();
  			System.out.print("                    "
  				+ reportInfoList.getReportId());
  			System.out.println();
  		    }
  		    if (reportInfoList.isSetReportType()) {
  			System.out.print("                ReportType");
  			System.out.println();
  			System.out.print("                    "
  				+ reportInfoList.getReportType());
  			System.out.println();
  		    }
  		    if (reportInfoList.isSetReportRequestId()) {
  			System.out.print("                ReportRequestId");
  			System.out.println();
  			System.out.print("                    "
  				+ reportInfoList.getReportRequestId());
  			System.out.println();
  		    }
  		    if (reportInfoList.isSetAvailableDate()) {
  			System.out.print("                AvailableDate");
  			System.out.println();
  			System.out.print("                    "
  				+ reportInfoList.getAvailableDate());
  			System.out.println();
  		    }
  