final DeploymentUnit unit = phaseContext.getDeploymentUnit();
WSDeploymentBuilder.getInstance().build(unit);
if (isWebServiceDeployment(unit)) { //note, this check works only after the WSDeploymentBuilder above has run
ServerConfigImpl config = (ServerConfigImpl)phaseContext.getServiceRegistry().getRequiredService(WSServices.CONFIG_SERVICE).getValue();
config.incrementWSDeploymentCount();
}
}
@Override
public void internalUndeploy(final org.jboss.as.server.deployment.DeploymentUnit context) {