jeevesAppContext.getBeansOfType(JpaRepository.class, false, true);
servletContext.setAttribute(User.NODE_APPLICATION_CONTEXT_KEY + nodeId, jeevesAppContext);
// check if the context is the default context
NodeInfo nodeInfo = jeevesAppContext.getBean(NodeInfo.class);
nodeInfo.setId(nodeId);
boolean isDefault = nodeInfo.isDefaultNode();
if (isDefault) {
if (defaultContext != null) {
throw new IllegalArgumentException("Two nodes where defined as the default. This is not acceptable.");
}