}
if (name == null) {
throw new ProcessingException("CreateContext: Name is required");
}
SessionContext context;
synchronized(session) {
// test for reserved context
if (SessionManager.isReservedContextName(name) == true) {
throw new ProcessingException("SessionContext with name " + name + " is reserved and cannot be created manually.");
}
Map contexts = this.getSessionContexts();
if (this.existsContext(name) == true) {
context = this.getContext(name);
} else {
context = new SimpleSessionContext();
context.setup(name, loadURI, saveURI);
contexts.put(name, context);
this.getSessionContextsTransactionStates().put(context, new TransactionState());
}
}
if (this.getLogger().isDebugEnabled() == true) {