// This can probably be removed and replaced with a data-control-definition-hook
// in the extension.xml with a child <definitionImplClass class="oracle.DCDefImplClassA"/>
// to let the Adapter DC now about our possible definition class
AdapterSettings.addFactory(new XMLDCDataControlObjectFactory());
DTContext.setCurrentContextImpl(new DTContext() {
public Context getConnectionContext() throws Exception {
AppConnContext appConnCtx = AppConnContext.getInstance();
Workspace workspace = Ide.getActiveWorkspace();
appConnCtx.setCurrentWorkspace(workspace);
return appConnCtx.getConnectionContext();