m.copyInto(messages);
return messages;
}
public ItemSimple fromImport(String input) throws Exception {
ItemSimple itemSimple = new ItemSimple();
ItemSimpleCategory categories[] = new ItemSimpleCategory[counterCategory + 1];
for (int i = 0; i < categories.length; i++) {
categories[i] = new ItemSimpleCategory();
}
itemSimple.setCategories(categories);
ItemSimple itemsRelated[] = new ItemSimple[counterItemRelated + 1];
for (int i = 0; i < itemsRelated.length; i++) {
itemsRelated[i] = new ItemSimple();
}
itemSimple.setItemsRelated(itemsRelated);
ItemSimple itemsUpSell[] = new ItemSimple[counterItemUpSell + 1];
for (int i = 0; i < itemsUpSell.length; i++) {
itemsUpSell[i] = new ItemSimple();
}
itemSimple.setItemsUpSell(itemsUpSell);
ItemSimple itemsCrossSell[] = new ItemSimple[counterItemCrossSell + 1];
for (int i = 0; i < itemsCrossSell.length; i++) {
itemsCrossSell[i] = new ItemSimple();
}
itemSimple.setItemsCrossSell(itemsCrossSell);
ItemSimpleItemTierPrice itemTierPrices[] = new ItemSimpleItemTierPrice[counterItemTierPrice + 1];
for (int i = 0; i < itemTierPrices.length; i++) {
itemTierPrices[i] = new ItemSimpleItemTierPrice();