1) WsRefRegistry is a per deployment registry.
2) The getWSRefRegistry is only invoked in the deployment unit processor and another service started by the weld deployment processor. This method is to make sure there is WSRefRegistry added in the deployment unit.