try {
final JMSServerManager jmsServer = new JMSServerManagerImpl(hornetQServer.getValue());
// TODO: This is a temp solution; see HORNETQ-650 for more info
final Name emptyName = new CompositeName("");
jmsServer.setContext(new MockContext((NamingContext)namingStore.getValue().lookup(emptyName), emptyName));
try {
// FIXME - we also need the TCCL here in case the JMSServerManager starts the HornetQServer
final ClassLoader loader = getClass().getClassLoader();
SecurityActions.setContextClassLoader(loader);