code: public String addDatastream(Context context,
                                  String pid,
                                  String dsID,
                                  String[] altIDs,
                                  String dsLabel,
                                  boolean versionable,
                                  String MIMEType,
                                  String formatURI,
                                  String location,
                                  String controlGroup,
                                  String dsState,
                                  String checksumType,
                                  String checksum,
                                  String logMessage) throws ServerException {
          throw rejectCallsFromOutsideWhileInRecoveryMode();
      }
docs: Reject API calls from outside while we are in recovery mode.