// Path: client/src/main/java/com/shopzilla/api/client/model/response/Classification.java
// public class Classification extends BaseResponse {
// 
//     private String originalKeyword;
//     private Long originalNumResults;
//     private Boolean mature;
//     private Boolean media;
//     private List<Suggestion> suggestions;
// 
//     public Classification() {
//     }
// 
//     public String getOriginalKeyword() {
//         return originalKeyword;
//     }
// 
//     public void setOriginalKeyword(String originalKeyword) {
//         this.originalKeyword = originalKeyword;
//     }
// 
//     public Long getOriginalNumResults() {
//         return originalNumResults;
//     }
// 
//     public void setOriginalNumResults(Long originalNumResults) {
//         this.originalNumResults = originalNumResults;
//     }
//    
//     public Boolean getMature() {
//         return mature;
//     }
// 
//     public void setMature(Boolean mature) {
//         this.mature = mature;
//     }
// 
//     public Boolean getMedia() {
//         return media;
//     }
// 
//     public void setMedia(Boolean media) {
//         this.media = media;
//     }
//     
//     public List<Suggestion> getSuggestions() {
//         if (suggestions == null) {
//             suggestions = new ArrayList<Suggestion>();
//         }
//         return suggestions;
//     }
// }


import java.util.List;
import org.apache.commons.lang.BooleanUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.shopzilla.api.client.model.response.Classification;
import com.shopzilla.services.catalog.ClassificationResponse;
import com.shopzilla.services.catalog.QuerySuggestionType;
/**
 * Copyright (C) 2004 - 2012 Shopzilla, Inc. 
 * All rights reserved. Unauthorized disclosure or distribution is prohibited.
 */
package com.shopzilla.api.client.model;




/**
 * Convert service classification response into API response model.
 * 
 * @author Tom Suthanurak
 * 
 * @since Jan 3, 2012
 */
public class ClassificationModelAdapter {
    
    private static final Log LOG = LogFactory.getLog(ClassificationModelAdapter.class);
    
// Path: client/src/main/java/com/shopzilla/api/client/model/response/Classification.java
// public class Classification extends BaseResponse {
// 
//     private String originalKeyword;
//     private Long originalNumResults;
//     private Boolean mature;
//     private Boolean media;
//     private List<Suggestion> suggestions;
// 
//     public Classification() {
//     }
// 
//     public String getOriginalKeyword() {
//         return originalKeyword;
//     }
// 
//     public void setOriginalKeyword(String originalKeyword) {
//         this.originalKeyword = originalKeyword;
//     }
// 
//     public Long getOriginalNumResults() {
//         return originalNumResults;
//     }
// 
//     public void setOriginalNumResults(Long originalNumResults) {
//         this.originalNumResults = originalNumResults;
//     }
//    
//     public Boolean getMature() {
//         return mature;
//     }
// 
//     public void setMature(Boolean mature) {
//         this.mature = mature;
//     }
// 
//     public Boolean getMedia() {
//         return media;
//     }
// 
//     public void setMedia(Boolean media) {
//         this.media = media;
//     }
//     
//     public List<Suggestion> getSuggestions() {
//         if (suggestions == null) {
//             suggestions = new ArrayList<Suggestion>();
//         }
//         return suggestions;
//     }
// }


// Path: client/src/main/java/com/shopzilla/api/client/model/ClassificationModelAdapter.java
import java.util.List;
import org.apache.commons.lang.BooleanUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.shopzilla.api.client.model.response.Classification;
import com.shopzilla.services.catalog.ClassificationResponse;
import com.shopzilla.services.catalog.QuerySuggestionType;

/**
 * Copyright (C) 2004 - 2012 Shopzilla, Inc. 
 * All rights reserved. Unauthorized disclosure or distribution is prohibited.
 */
package com.shopzilla.api.client.model;




/**
 * Convert service classification response into API response model.
 * 
 * @author Tom Suthanurak
 * 
 * @since Jan 3, 2012
 */
public class ClassificationModelAdapter {
    
    private static final Log LOG = LogFactory.getLog(ClassificationModelAdapter.class);
    
    public static Classification fromCatalogAPI(ClassificationResponse response) {