Buggy code:
public class ServerOperationResolver { public static AttachmentKey < Set < ModelNode > > DONT_PROPAGATE_TO_SERVERS_ATTACHMENT = AttachmentKey . create ( Set . class ) ; private enum DomainKey { UNKNOWN ( null ) , EXTENSION ( "extension" ) , PATH ( "path" ) , SYSTEM_PROPERTY ( "system-property" ) , PROFILE ( "profile" ) , INTERFACE ( "interface" ) , SOCKET_BINDING_GROUP ( "socket-binding-group" ) , DEPLOYMENT ( "deployment" ) , SERVER_GROUP ( "server-group" ) , MANAGMENT_CLIENT_CONTENT ( "management-client-content" ) , HOST ( "host" ) ; private final String name ; DomainKey ( final String name ) { } private static final Map < String , ServerOperationResolver . DomainKey > MAP ; public static ServerOperationResolver . DomainKey forName ( String localName ) { } } private enum HostKey { UNKNOWN ( null ) , PATH ( "path" ) , SYSTEM_PROPERTY ( "system-property" ) , CORE_SERVICE ( "core-service" ) , INTERFACE ( "interface" ) , JVM ( "jvm" ) , SERVER ( "server" ) , SERVER_CONFIG ( "server-config" ) ; private final String name ; HostKey ( final String name ) { } private static final Map < String , ServerOperationResolver . HostKey > MAP ; public static ServerOperationResolver . HostKey forName ( String localName ) { } } private enum Level { DOMAIN , SERVER_GROUP , HOST , SERVER ; } private final String localHostName ; private final Map < String , ProxyController > serverProxies ; public ServerOperationResolver ( final String localHostName , final Map < String , ProxyController > serverProxies ) { } public static synchronized void addToDontPropagateToServersAttachment ( OperationContext context , ModelNode op ) { } public Map < Set < ServerIdentity > , ModelNode > getServerOperations ( OperationContext context , ModelNode operation , PathAddress address ) { } private Map < Set < ServerIdentity > , ModelNode > getServerProfileOperations ( ModelNode operation , PathAddress address , ModelNode domain , ModelNode host ) { } private Map < Set < ServerIdentity > , ModelNode > getServerInterfaceOperations ( ModelNode operation , PathAddress address , ModelNode hostModel , boolean forDomain ) { String pathName = address . getElement ( 0 ) . getValue ( ) ; Map < Set < ServerIdentity > , ModelNode > result ; if ( ( forDomain && ( hostModel . hasDefined ( INTERFACE ) ) ) && ( hostModel . get ( INTERFACE ) . keys ( ) . contains ( pathName ) ) ) { result = Collections . emptyMap ( ) ; } else <START_BUG> if ( ( ADD . equals ( operation . get ( OP ) . asString ( ) ) ) && ( InterfaceDescription . isOperationDefined ( operation ) ) ) { <END_BUG> result = Collections . emptyMap ( ) ; } else if ( hostModel . hasDefined ( SERVER_CONFIG ) ) { Set < ServerIdentity > servers = new HashSet < ServerIdentity > ( ) ; for ( Property prop : hostModel . get ( SERVER_CONFIG ) . asPropertyList ( ) ) { String serverName = prop . getName ( ) ; if ( ( serverProxies . get ( serverName ) ) == null ) { continue ; } ModelNode server = prop . getValue ( ) ; String serverGroupName = server . require ( GROUP ) . asString ( ) ; if ( ( server . hasDefined ( INTERFACE ) ) && ( server . get ( INTERFACE ) . keys ( ) . contains ( pathName ) ) ) { continue ; } ServerIdentity groupedServer = new ServerIdentity ( localHostName , serverGroupName , serverName ) ; servers . add ( groupedServer ) ; } ModelNode serverOp = operation . clone ( ) ; serverOp . get ( OP_ADDR ) . setEmptyList ( ) . add ( INTERFACE , pathName ) ; result = Collections . singletonMap ( servers , serverOp ) ; } else { result = Collections . emptyMap ( ) ; } return result ; } private Map < Set < ServerIdentity > , ModelNode > getServerPathOperations ( ModelNode operation , PathAddress address , ModelNode hostModel , boolean forDomain ) { } private Map < Set < ServerIdentity > , ModelNode > getServerSocketBindingGroupOperations ( ModelNode operation , PathAddress address , ModelNode domain , ModelNode host ) { } private Map < Set < ServerIdentity > , ModelNode > getServerGroupOperations ( ModelNode operation , PathAddress address , ModelNode domain , ModelNode host ) { } private Map < Set < ServerIdentity > , ModelNode > resolveDomainRootOperation ( ModelNode operation , ModelNode domain , ModelNode host ) { } private Set < String > getServerGroupsForDeployment ( String deploymentName , ModelNode domainModel ) { } private boolean hasSystemProperty ( ModelNode resource , String propName ) { } private Map < Set < ServerIdentity > , ModelNode > getServerHostOperations ( ModelNode operation , PathAddress address , ModelNode domain , ModelNode host ) { } private Map < Set < ServerIdentity > , ModelNode > resolveHostRootOperation ( ModelNode operation , ModelNode domain , ModelNode host ) { } private Map < Set < ServerIdentity > , ModelNode > getServerSystemPropertyOperations ( ModelNode operation , PathAddress address , ServerOperationResolver . Level level , ModelNode domain , String affectedGroup , ModelNode host ) { } private ModelNode getServerSystemPropertyOperation ( ModelNode operation , String propName , ServerIdentity server , ServerOperationResolver . Level level , ModelNode domain , ModelNode host ) { } private ModelNode getSystemPropertyValue ( ModelNode root , String propName ) { } private Map < Set < ServerIdentity > , ModelNode > resolveServerConfigOperation ( ModelNode operation , PathAddress address , ModelNode domain , ModelNode host ) { } private Map < Set < ServerIdentity > , ModelNode > getServerRestartRequiredOperations ( Set < ServerIdentity > servers ) { } private ServerIdentity getServerIdentity ( String serverName , ModelNode host ) { } private boolean isServerAffectingSystemPropertyOperation ( ModelNode operation ) { } }

Fix:
if ( ( forDomain && ( ADD . equals ( operation . get ( OP ) . asString ( ) ) ) ) && ( InterfaceDescription . isOperationDefined ( operation ) ) ) {