public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(BatchSubsystemDefinition.NAME, CURRENT_MODEL_VERSION);
subsystem.registerSubsystemModel(BatchSubsystemDefinition.INSTANCE);
subsystem.registerXMLElementWriter(BatchSubsystemParser.INSTANCE);
if (context.isRuntimeOnlyRegistrationValid()) {
<BUG>final SimpleResourceDefinition deploymentResource = new SimpleResourceDefinition(
</BUG>
BatchSubsystemDefinition.SUBSYSTEM_PATH,
<BUG>BatchResourceDescriptionResolver.getResourceDescriptionResolver("deployment"));
</BUG>
final ManagementResourceRegistration deployments = subsystem.registerDeploymentModel(deploymentResource);

public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(BatchSubsystemDefinition.NAME, CURRENT_MODEL_VERSION);
subsystem.registerSubsystemModel(BatchSubsystemDefinition.INSTANCE);
subsystem.registerXMLElementWriter(BatchSubsystemParser.INSTANCE);
if (context.isRuntimeOnlyRegistrationValid()) {
final SimpleResourceDefinition deploymentResource = new SimpleResourceDefinition(new SimpleResourceDefinition.Parameters(
BatchSubsystemDefinition.SUBSYSTEM_PATH,
BatchResourceDescriptionResolver.getResourceDescriptionResolver("deployment")).setRuntime());
final ManagementResourceRegistration deployments = subsystem.registerDeploymentModel(deploymentResource);
