code: public String[] getUserStorableTypeNames() throws RepositoryException {
          StorableInfoCapability replicaCap =
              mReplicaRepository.getCapability(StorableInfoCapability.class);
          StorableInfoCapability masterCap =
              mMasterRepository.getCapability(StorableInfoCapability.class);
  
          if (replicaCap == null) {
              if (masterCap == null) {
                  return new String[0];
              }
              return masterCap.getUserStorableTypeNames();
          } else if (masterCap == null) {
              return replicaCap.getUserStorableTypeNames();
          }
  
          // Merge the two sets together.
          Set<String> names = new LinkedHashSet<String>();
          for (String name : replicaCap.getUserStorableTypeNames()) {
              names.add(name);
          }
          for (String name : masterCap.getUserStorableTypeNames()) {
              names.add(name);
          }
  
          return names.toArray(new String[names.size()]);
      }
docs: /*
  public boolean isClosed() {
  return mReplicaRepository.isClosed() || mMasterRepository.isClosed();
  }