// Define open content property - company
DataObject companyProperty = factory.create("commonj.sdo", "Property");
companyProperty.set("name", "company");
companyProperty.set("type", companyType);
companyProperty.set("containment", Boolean.TRUE);
types.defineOpenContentProperty("http://www.example.com/open", companyProperty);
// Define open content property - price
DataObject priceProperty = factory.create("commonj.sdo", "Property");
priceProperty.set("name", "price");
priceProperty.set("type", decimalType);