code: public URI getUri(StorageLocation location) {
          switch (location) {
              case PRIMARY:
                  return this.primaryUri;
  
              case SECONDARY:
                  return this.secondaryUri;
  
              default:
                  throw new IllegalArgumentException(String.format(Utility.LOCALE_US, SR.ARGUMENT_OUT_OF_RANGE_ERROR,
                          "location", location.toString()));
          }
      }
docs: Gets the URI for a specified {@link StorageLocation}.
  
  @param location
  The <code>StorageLocation</code> object for which to retrieve a URI.
  
  @return
  A <code>java.net.URI</code> object for the specified <code>StorageLocation</code>.