throw new IllegalStateException("Could not get the DSpace Kernel");
}
if (! kernel.isRunning()) {
throw new IllegalStateException("DSpace Kernel is not running, cannot startup the DirectServlet");
}
ServiceManager serviceManager = kernel.getServiceManager();
sessionService = serviceManager.getServiceByName(SessionService.class.getName(), SessionService.class);
if (sessionService == null) {
throw new IllegalStateException("Could not get the DSpace SessionService");
}
requestService = serviceManager.getServiceByName(RequestService.class.getName(), RequestService.class);
if (requestService == null) {
throw new IllegalStateException("Could not get the DSpace RequestService");
}
log.info("Servlet initialized");
} catch (Exception e) {