if (parent.get(original.getKey()).asList().isEmpty()){
parent.remove(original.getKey());
}
}
}
<BUG>});
TransformersSubRegistration connectors = transformers.registerSubResource(CONNECTOR_PATH);</BUG>
connectors.registerOperationTransformer(ADD, new OperationTransformer() {
@Override
public TransformedOperation transformOperation(final TransformationContext context, final PathAddress address, final ModelNode operation)

if (parent.get(original.getKey()).asList().isEmpty()){
parent.remove(original.getKey());
}
}
}
});
transformers.registerSubResource(VALVE_PATH, true);
TransformersSubRegistration connectors = transformers.registerSubResource(CONNECTOR_PATH);
connectors.registerOperationTransformer(ADD, new OperationTransformer() {
@Override
public TransformedOperation transformOperation(final TransformationContext context, final PathAddress address, final ModelNode operation)
