try {
// if there is no campaign assigned, then ask the user for one
if(campaign == null) {
logger.info("No campaign is set on object template; requesting one from user.");
CampaignChooserDialog ccd = (CampaignChooserDialog)appContext.getBean("campaignChooserDialog",
new Object[] { PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell() });
int rc = ccd.open();
logger.trace("rc: " + rc);
if(rc == IDialogConstants.YES_ID) {
oi.setCampaign(ccd.getCampaign());
}
else {
logger.info("Campaign chooser dialog was canceled; aborting object instance build.");
return;
}