Buggy code:
public class WebConnectorAdd extends AbstractWebSubsystemUpdate < Void > { private static final long serialVersionUID = 8619926322146139691L ; private final String name ; private String protocol ; private String bindingRef ; private String scheme ; private String executorRef ; private Boolean enabled ; private Boolean enableLookups ; private String proxyName ; private Integer proxyPort ; private Integer redirectPort ; private Boolean secure ; private Integer maxPostSize ; private Integer maxSavePostSize ; public WebConnectorAdd ( final String name ) { } protected void applyUpdate ( WebSubsystemElement element ) throws UpdateFailedException { } protected < P > void applyUpdate ( UpdateContext context , UpdateResultHandler < ? super Void , P > resultHandler , P param ) { final boolean enabled = ( ( this . enabled ) == null ) || ( this . enabled ) ; final WebConnectorService service = new WebConnectorService ( protocol , scheme ) ; if ( ( secure ) != null ) service . setSecure ( secure ) ; if ( ( enableLookups ) != null ) service . setEnableLookups ( enabled ) ; if ( ( proxyName ) != null ) service . setProxyName ( proxyName ) ; if ( ( proxyPort ) != null ) service . setProxyPort ( proxyPort ) ; if ( ( redirectPort ) != null ) service . setRedirectPort ( redirectPort ) ; if ( ( maxPostSize ) != null ) service . setMaxPostSize ( maxPostSize ) ; if ( ( maxSavePostSize ) != null ) service . setMaxSavePostSize ( maxSavePostSize ) ; <START_BUG> context . getBatchBuilder ( ) . addService ( JBOSS_WEB_CONNECTOR . append ( name ) , service ) . addDependency ( JBOSS_WEB , WebServer . class , service . getServer ( ) ) . addDependency ( JBOSS_BINDING_NAME . append ( bindingRef ) , SocketBinding . class , service . getBinding ( ) ) . addListener ( new UpdateResultHandler . ServiceStartListener < P > ( resultHandler , param ) ) . setInitialMode ( ( enabled ? Mode . IMMEDIATE : Mode . NEVER ) ) ; <END_BUG> } public AbstractSubsystemUpdate < WebSubsystemElement , ? > getCompensatingUpdate ( WebSubsystemElement original ) { } public String getName ( ) { } public String getProtocol ( ) { } public void setProtocol ( String protocol ) { } public String getBindingRef ( ) { } public void setBindingRef ( String bindingRef ) { } public String getScheme ( ) { } public void setScheme ( String scheme ) { } public String getExecutorRef ( ) { } public void setExecutorRef ( String executorRef ) { } public Boolean getEnabled ( ) { } public void setEnabled ( Boolean enabled ) { } public Boolean getSecure ( ) { } public void setSecure ( Boolean secure ) { } protected Boolean getEnableLookups ( ) { } protected void setEnableLookups ( Boolean enableLookups ) { } protected String getProxyName ( ) { } protected void setProxyName ( String proxyName ) { } protected Integer getProxyPort ( ) { } protected void setProxyPort ( Integer proxyPort ) { } protected Integer getRedirectPort ( ) { } protected void setRedirectPort ( Integer redirectPort ) { } protected Integer getMaxPostSize ( ) { } protected void setMaxPostSize ( Integer maxPostSize ) { } protected Integer getMaxSavePostSize ( ) { } protected void setMaxSavePostSize ( Integer maxSavePostSize ) { } static WebConnectorAdd create ( final WebConnectorElement connector ) { } }

Fix:
context . getBatchBuilder ( ) . addService ( JBOSS_WEB_CONNECTOR . append ( name ) , service ) . addDependency ( JBOSS_WEB , WebServer . class , service . getServer ( ) ) . addDependency ( JBOSS_BINDING_NAME . append ( bindingRef ) , SocketBinding . class , service . getBinding ( ) ) . addListener ( new UpdateResultHandler . ServiceStartListener < P > ( resultHandler , param ) ) . setInitialMode ( ( enabled ? Mode . ACTIVE : Mode . NEVER ) ) ;