// by default invoke the start method, unless auto-start is disabled
if (XmlUtil.attributeBoolean(element, "auto-start", false, parse, true)) {
InvokeOperation invokeStartOperation = new InvokeOperation();
invokeStartOperation.setMethodName("start");
descriptor.addOperation(invokeStartOperation);
descriptor.setAutoStart(true);
descriptor.setInit(AbstractDescriptor.INIT_EAGER);
}
return descriptor;