public class GetRecommendationsResponseHelper {
public static String toString(GetRecommendationsResponseContainerType response) {
StringBuffer sb = new StringBuffer();
ListingAnalyzerRecommendationsType listingAnalyzerRecoms = getListinAnalyzerRecommendations(response);
PricingRecommendationsType pricingRecoms = getPricingRecommendations(response);
ProductRecommendationsType productRecoms = getProductRecommendations(response);
AttributeRecommendationsType attribRecoms = getAttributeRecommendations(response);
if(listingAnalyzerRecoms != null) {
sb.append("Listing Analyzer Recommendation Engine:\n");
ListingTipType[] listingTips = listingAnalyzerRecoms.getListingTipArray().getListingTip();
sb.append("\tListing Tips:\n");
for(int i = 0; i < listingTips.length; i++) {
sb.append("\t\tTip ID: ").append(listingTips[i].getListingTipID()).append(" Priority: ").append(listingTips[i].getPriority());
sb.append(" *** Help URL: ").append(listingTips[i].getMessage().getHelpURLPath()).append("\n\t\t\t");
sb.append(listingTips[i].getMessage().getLongMessage()).append("\n");