// inject the command executor
TypeRefDescriptor commandExecutorDescriptor = new TypeRefDescriptor();
commandExecutorDescriptor.setContextClass(CommandService.class);
FieldOperation commandExecutorInjection = new FieldOperation();
commandExecutorInjection.setFieldName("commandService");
commandExecutorInjection.setDescriptor(commandExecutorDescriptor);
descriptor.addOperation(commandExecutorInjection);
if (element.hasAttribute("name")) {
StringDescriptor nameDescriptor = new StringDescriptor();
nameDescriptor.setValue(element.getAttribute("name"));
FieldOperation nameInjection = new FieldOperation();
nameInjection.setFieldName("name");
nameInjection.setDescriptor(nameDescriptor);
}
parseIntAttribute(element, "threads", descriptor, "nbrOfThreads", parse);
parseIntAttribute(element, "idle", descriptor, "idleMillis", parse);
parseIntAttribute(element, "idle-max", descriptor, "idleMillisMax", parse);