@Override
public DescriptionProvider getDescriptionProvider(ImmutableManagementResourceRegistration resourceRegistration) {
if (registerRuntimeOnly) {
return super.getDescriptionProvider(resourceRegistration);
} else {
return new DefaultResourceDescriptionProvider(resourceRegistration, getResourceDescriptionResolver()) {
@Override
public ModelNode getModelDescription(Locale locale) {
ModelNode result = super.getModelDescription(locale);
result.get(CHILDREN, PATH, MIN_OCCURS).set(4);
result.get(CHILDREN, PATH, MAX_OCCURS).set(4);