metadata.addMetadata("CAS.ProductTypeRepositoryPath", type
.getProductRepositoryPath());
metadata.addMetadata("CAS.ProductTypeVersioner", type.getVersioner());
metadata.addMetadata("CAS.ProductTypeName", type.getName());
metadata.addMetadata("ProductType", "ProductType");
metadata.replaceMetadata(type.getTypeMetadata());
if (delete) {
try {
server.deleteById(type.getProductTypeId());
} catch (Exception e) {
LOG.severe("Could not delete product type " + type.getName()