code: public static String retrieveKeyspaceFromURI(URI uri) {
  	String path = uri.getPath();
  	if (path.startsWith("/")) {
  	    path = path.substring(1);
  	}
  	if (path.endsWith("/")) {
  	    path = path.substring(0, path.length() - 1);
  	}
  	String[] splits = path.split("/");
  	if (splits.length > 1) {
  	    throw new XOException(
  		    "The URI for this store may only contain a single path entry for the keyspace.");
  	}
  	return splits[0];
      }
docs: This is a helper method to retrieve the keyspace name from a store URI.
  The keyspace is taken from the path part of the URI and may be empty, if
  the default keyspace {@value TitanCassandraStore#DEFAULT_TITAN_KEYSPACE}
  is to be used.
  
  @param uri
  is the URI where the keyspace name is to be extracted from.
  @return The name of the keyspace is returned as {@link String} .