String policyFile = policyPath + "/" + policyName + "/product-types.xml";
LOG.log(Level.INFO, "updating CAS policy at: [" + policyFile + "]");
// serialize all CasProductType instances from metaDataItems hashtable
try {
CurationXmlStructFactory.writeProductTypeXmlDocument(cpm
.typesToList(types), policyFile);
} catch (Exception e) {
throw new ServletException(
"error writing product type xml document! Message: " + e.getMessage());