// ensure the name maps to an actual bean
//
try {
Context context = (new Environment()).getInitialContext();
BizBeanHome bean = (BizBeanHome) context.lookup(beanName);
//
// check if docType is already a key and if so add the
// bean to its entry.
//