String str = rootException.getMessage()!=null? rootException.getMessage(): rootException.getClass().getName();
msg += "\nThe root cause of the error is: " + str;
serviceException = new SpagoBIEngineStartupException(ENGINE_NAME, msg, t);
if(rootException instanceof QbeTemplateParseException) {
QbeTemplateParseException e = (QbeTemplateParseException)rootException;
serviceException.setDescription( e.getDescription());
serviceException.setHints( e.getHints() );
}
throw serviceException;
}
logger.debug("Engine instance succesfully created");