Buggy code:
public class CoreManagementResourceDefinition extends SimpleResourceDefinition { public static final PathElement PATH_ELEMENT = PathElement . pathElement ( ModelDescriptionConstants . CORE_SERVICE , ModelDescriptionConstants . MANAGEMENT ) ; public static void registerDomainResource ( Resource parent , AccessConstraintUtilizationRegistry registry ) { } private final Environment environment ; private final List < ResourceDefinition > interfaces ; private final DelegatingConfigurableAuthorizer authorizer ; private final ManagedAuditLogger auditLogger ; private final PathManagerService pathManager ; private final EnvironmentNameReader environmentReader ; private CoreManagementResourceDefinition ( final Environment environment , final DelegatingConfigurableAuthorizer authorizer , final ManagedAuditLogger auditLogger , final PathManagerService pathManager , final EnvironmentNameReader environmentReader , final List < ResourceDefinition > interfaces ) { } @ Override public void registerChildren ( ManagementResourceRegistration resourceRegistration ) { if ( ( environment ) != ( Environment . DOMAIN ) ) { resourceRegistration . registerSubModel ( INSTANCE ) ; <START_BUG> resourceRegistration . registerSubModel ( LdapConnectionResourceDefinition . INSTANCE ) ; <END_BUG> } for ( ResourceDefinition current : interfaces ) { resourceRegistration . registerSubModel ( current ) ; } boolean registerAuditLog = true ; switch ( environment ) { case DOMAIN : resourceRegistration . registerSubModel ( AccessAuthorizationResourceDefinition . forDomain ( authorizer ) ) ; registerAuditLog = false ; break ; case DOMAIN_SERVER : resourceRegistration . registerSubModel ( AccessAuthorizationResourceDefinition . forDomainServer ( authorizer ) ) ; break ; case HOST_CONTROLLER : resourceRegistration . registerSubModel ( AccessAuthorizationResourceDefinition . forHost ( authorizer ) ) ; break ; case STANDALONE_SERVER : resourceRegistration . registerSubModel ( AccessAuthorizationResourceDefinition . forStandaloneServer ( authorizer ) ) ; } if ( registerAuditLog ) { resourceRegistration . registerSubModel ( new org . jboss . as . domain . management . audit . AccessAuditResourceDefinition ( auditLogger , pathManager , environmentReader ) ) ; } } public static SimpleResourceDefinition forDomain ( final DelegatingConfigurableAuthorizer authorizer ) { } public static SimpleResourceDefinition forDomainServer ( final DelegatingConfigurableAuthorizer authorizer , final ManagedAuditLogger auditLogger , final PathManagerService pathManager , final EnvironmentNameReader environmentReader ) { } public static SimpleResourceDefinition forHost ( final DelegatingConfigurableAuthorizer authorizer , final ManagedAuditLogger auditLogger , final PathManagerService pathManager , final EnvironmentNameReader environmentReader , final ResourceDefinition ... interfaces ) { } public static SimpleResourceDefinition forStandaloneServer ( final DelegatingConfigurableAuthorizer authorizer , final ManagedAuditLogger auditLogger , final PathManagerService pathManager , final EnvironmentNameReader environmentReader , final ResourceDefinition ... interfaces ) { } }

Fix:
resourceRegistration . registerSubModel ( LdapConnectionResourceDefinition . newInstance ( ) ) ;