private Optional keySchemeRest()

in owners-common/src/main/java/com/googlesource/gerrit/owners/common/AccountsImpl.java [180:185]


  private Optional<String> keySchemeRest(String scheme, ExternalId.Key key) {
    if (scheme != null && key.isScheme(scheme)) {
      return Optional.of(key.get().substring(scheme.length() + 1));
    }
    return Optional.empty();
  }