isSiteInstance = false;
}
if (isSiteInstance) {
// case A) is a site: create view identifyer for this jump in to the site
JumpInResult jres = jh.createJumpInResult(ureq, cc.getWindowControl());
dts.activateStatic(ureq, ores.getResourceableTypeName(), jres.getInitialViewIdentifier());
} else {
// case B) no site and no opened tab -> create and add
dt = dts.createDTab(ores, title);
if (dt == null) { // tabs are full
//create dtabs already issues a warning message
} else {
JumpInResult jres = jh.createJumpInResult(ureq, dt.getWindowControl());
Controller resC = jres.getController();
if (resC == null) { // the resource was not found or user is not
// allowed to start the resource
DispatcherAction.sendNotFound(request.getRequestURI(), response);
return;
}