code: public static String getRewrittenPublishedEndpointUrl(String address, SOAPAddressRewriteMetadata sarm)
     {
        try
        {
           if (isPathRewriteRequired(sarm) || isSchemeRewriteRequired(sarm)) {
              final URL url = new URL(address);
              final String uriScheme = rewriteUriScheme(sarm, getUriScheme(address), null);
              final String port = getDotPortNumber(uriScheme, sarm);
              final StringBuilder builder = new StringBuilder();
              builder.append(uriScheme);
              builder.append("://");
              builder.append(url.getHost());
              builder.append(port);
              final String path = url.getPath();
              builder.append(isPathRewriteRequired(sarm) ? SEDProcessor.newInstance(sarm.getWebServicePathRewriteRule()).processLine(path) : path);
              final String newUrl = builder.toString();
  
              ADDRESS_REWRITE_LOGGER.addressRewritten(address, newUrl);
              return newUrl;
           }
           else
           {
              ADDRESS_REWRITE_LOGGER.rewriteNotRequired(address);
              return address;
           }
        }
        catch (MalformedURLException e)
        {
           ADDRESS_REWRITE_LOGGER.invalidAddressProvidedUseItWithoutRewriting(address, "");
           return address;
        }
     }
docs: Rewrite and get address to be used for CXF published endpoint url prop (rewritten wsdl address).
  This method is to be used for code-first endpoints, when no wsdl is provided by the user.
  
  @param address        The container computed endpoint address
  @param sarm           The deployment SOAPAddressRewriteMetadata
  @return