// Path: src/main/java/br/com/soapboxrace/bo/CatalogBO.java
// public class CatalogBO {
// 
// 	private IProductDao productDao = DaoFactory.getProductDao();
// 	private ICategoryDao categoryDao = DaoFactory.getCategoryDao();
// 
// 	public ArrayOfProductTrans productsInCategory(String categoryName, String clientProductType) {
// 		List<ProductEntity> products = productDao.findByCategoryNameClientProductType(categoryName, clientProductType);
// 		ArrayOfProductTrans arrayOfProductTrans = new ArrayOfProductTrans();
// 		arrayOfProductTrans.setProductTransList(products);
// 		return arrayOfProductTrans;
// 	}
// 
// 	public ArrayOfCategoryTrans categories() {
// 		return categoryDao.getAll();
// 	}
// }
// 
// Path: src/main/java/br/com/soapboxrace/jaxb/util/MarshalXML.java
// public class MarshalXML {
// 
// 	public static String marshal(Object obj) {
// 		StringWriter stringWriter = new StringWriter();
// 		try {
// 			JAXBContext jaxbContext = JAXBContext.newInstance(obj.getClass());
// 			Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
// 			jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false);
// 			jaxbMarshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
// 			jaxbMarshaller.marshal(obj, stringWriter);
// 		} catch (Exception e) {
// 			e.printStackTrace();
// 		}
// 		return stringWriter.toString();
// 	}
// }


import br.com.soapboxrace.bo.CatalogBO;
import br.com.soapboxrace.jaxb.ArrayOfCategoryTrans;
import br.com.soapboxrace.jaxb.ArrayOfProductTrans;
import br.com.soapboxrace.jaxb.util.MarshalXML;
package br.com.soapboxrace.engine;


public class Catalog extends Router {

	private CatalogBO catalogBO = new CatalogBO();

	public String productsInCategory() {
		String categoryName = getParam("categoryName");
		String clientProductType = getParam("clientProductType");

// Path: src/main/java/br/com/soapboxrace/bo/CatalogBO.java
// public class CatalogBO {
// 
// 	private IProductDao productDao = DaoFactory.getProductDao();
// 	private ICategoryDao categoryDao = DaoFactory.getCategoryDao();
// 
// 	public ArrayOfProductTrans productsInCategory(String categoryName, String clientProductType) {
// 		List<ProductEntity> products = productDao.findByCategoryNameClientProductType(categoryName, clientProductType);
// 		ArrayOfProductTrans arrayOfProductTrans = new ArrayOfProductTrans();
// 		arrayOfProductTrans.setProductTransList(products);
// 		return arrayOfProductTrans;
// 	}
// 
// 	public ArrayOfCategoryTrans categories() {
// 		return categoryDao.getAll();
// 	}
// }
// 
// Path: src/main/java/br/com/soapboxrace/jaxb/util/MarshalXML.java
// public class MarshalXML {
// 
// 	public static String marshal(Object obj) {
// 		StringWriter stringWriter = new StringWriter();
// 		try {
// 			JAXBContext jaxbContext = JAXBContext.newInstance(obj.getClass());
// 			Marshaller jaxbMarshaller = jaxbContext.createMarshaller();
// 			jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false);
// 			jaxbMarshaller.setProperty(Marshaller.JAXB_FRAGMENT, true);
// 			jaxbMarshaller.marshal(obj, stringWriter);
// 		} catch (Exception e) {
// 			e.printStackTrace();
// 		}
// 		return stringWriter.toString();
// 	}
// }


// Path: src/main/java/br/com/soapboxrace/engine/Catalog.java
import br.com.soapboxrace.bo.CatalogBO;
import br.com.soapboxrace.jaxb.ArrayOfCategoryTrans;
import br.com.soapboxrace.jaxb.ArrayOfProductTrans;
import br.com.soapboxrace.jaxb.util.MarshalXML;

package br.com.soapboxrace.engine;


public class Catalog extends Router {

	private CatalogBO catalogBO = new CatalogBO();

	public String productsInCategory() {
		String categoryName = getParam("categoryName");
		String clientProductType = getParam("clientProductType");

		ArrayOfProductTrans productsInCategory = catalogBO.productsInCategory(categoryName, clientProductType);