String header = transformation.getHeader();
if (header != null) {
outputStream.write(header.getBytes());
}
ItemApi itemApi = new ItemApi(site);
sql = "from Item item where item.site.siteId = :siteId";
query = em.createQuery(sql);
query.setParameter("siteId", site.getSiteId());
Iterator<?> iterator = query.getResultList().iterator();
boolean error = false;
while (iterator.hasNext()) {
Item item = (Item) iterator.next();
for (SiteProfileClass siteProfileClass : siteProfileClasses) {
for (SiteCurrencyClass siteCurrencyClass : siteCurrencyClasses) {
String result = "";
try {
com.jada.xml.ie.Item i = itemApi.export(item);
ItemSimple itemSimpleXml = new ItemSimple(i,
siteProfileClass.getSiteProfileClassId(),
siteProfileClass.getSiteProfileClassName(),
siteCurrencyClass.getSiteCurrencyClassId(),
siteCurrencyClass.getSiteCurrencyClassName());