Extension Mechanism

When you load a document, you can specify a Content Type Manager.

The Content Type Manager is responsible for mapping content types in Content_Types.xml to Java objects.

If the Java object ordinarily responsible is not sufficient for your needs:

1. Create a new object which does what you want, probably extending the existing one

2. Create an implementation of the ContentTypeManager interface (usually you will extend ContentTypeManagerImpl). In that implementation, implement the relevant Create..PartObject

3. Be sure to pass your content type manager implementation to the relevant load object.