public static HornetQServer newHornetQServer(final Configuration config,
final MBeanServer mbeanServer,
final boolean enablePersistence)
{
HornetQSecurityManager securityManager = new HornetQSecurityManagerImpl();
HornetQServer server = HornetQServers.newHornetQServer(config, mbeanServer, securityManager, enablePersistence);
return server;
}