protected DeploymentUnit doPrepare ( String context , ClassLoader loader , Map < String , String > urlPatternToClassNameMap , JBossWebMetaData jbwmd , WebservicesMetaData metadata , JBossWebservicesMetaData jbwsMetadata ) { ClassLoader origClassLoader = WildFlySecurityManager . getCurrentContextClassLoaderPrivileged ( ) ; WSEndpointDeploymentUnit unit = new WSEndpointDeploymentUnit ( loader , context , urlPatternToClassNameMap , jbwmd , metadata , jbwsMetadata ) ; try { WildFlySecurityManager . setCurrentContextClassLoaderPrivileged ( ClassLoaderProvider . getDefaultProvider ( ) . getServerIntegrationClassLoader ( ) ) ; WSDeploymentBuilder . getInstance ( ) . build ( unit ) ; return unit ; } finally { WildFlySecurityManager . setCurrentContextClassLoaderPrivileged ( origClassLoader ) ; } }
Prepare the ws Deployment and return a DeploymentUnit containing it