return XmlRpcStructFactory.getXmlRpcProduct(product);
} catch (CatalogException e) {
e.printStackTrace();
LOG.log(Level.SEVERE, "Unable to obtain product by id: ["
+ productId + "]: Message: " + e.getMessage());
throw new CatalogException(e.getMessage());
} catch (RepositoryManagerException e) {
e.printStackTrace();
LOG.log(Level.SEVERE, "Unable to obtain product type by id: ["
+ product.getProductType().getProductTypeId()
+ "]: Message: " + e.getMessage());
throw new CatalogException(e.getMessage());
}
}