@Override
protected void doStart() throws Exception
{
// Register the server implementation
final String mcServerBindName = "JBossServer";
final Kernel kernel = this.getKernel();
if (kernel == null)
{
throw new IllegalStateException("Server cannot be started without the presence of an underlying "
+ Kernel.class.getName());
}
final KernelController controller = kernel.getController();
final BeanMetaDataBuilder builder = BeanMetaDataBuilder.createBuilder(mcServerBindName, getClass().getName());
builder.addMethodInstallCallback("addBootstrap");
builder.addMethodUninstallCallback("removeBootstrap");
builder.ignoreStart(); // We invoke start manually, don't let MC do it
try