* @param custom customization information
* @return formatter
*/
public IDocumentFormatter getFormatter(SharedNestingBase custom) {
String cname = custom.getFormatterClass();
IDocumentFormatter format = (IDocumentFormatter)m_classInstances.get(cname);
if (format == null) {
Class clas = m_locator.loadClass(cname);
if (clas == null) {
throw new IllegalStateException("Cannot load document formatter class " + cname);
}