// we can support the DMW environment i.e. the DMO will have a handle to its
// container. If something goes wrong, we fall back to directly instantiating
// the DMO.
DmwWrapper wrapper = null;
try {
wrapper = cd.newInstance();
}
catch(Exception ex){
// Just fall back to instantiating the DMO
}