code: public static StorageUri getServiceClientBaseAddress(final StorageUri addressUri, final boolean usePathStyleUris)
              throws URISyntaxException {
          return new StorageUri(new URI(getServiceClientBaseAddress(addressUri.getPrimaryUri(), usePathStyleUris)),
                  addressUri.getSecondaryUri() != null ?
                  new URI(getServiceClientBaseAddress(addressUri.getSecondaryUri(), usePathStyleUris)) : null);
      }
docs: Get the service client address from a complete Uri.
  
  @param address
  Complete address of the resource.
  @param usePathStyleUris
  a value indicating if the address is a path style uri.
  @return the service client address from a complete Uri.
  @throws URISyntaxException