int type = proc == null ? ProcIdentifier.TYPE_SP : proc.getType(); SQLDevToolsConfiguration config = SQLToolsFacade.getConfigurationByProfileName(proc.getDatabaseIdentifier().getProfileName()); buffer.append(config.getExecutionService().getDirectInvocationPrefix(proc.getType()));