code: @Override
      public String[] getNextPID(int numPIDs, String namespace)
              throws ServerException {
  
          if (numPIDs < 1) {
              numPIDs = 1;
          }
          String[] pidList = new String[numPIDs];
          if (namespace == null || namespace.isEmpty()) {
              namespace = m_pidNamespace;
          }
          try {
              for (int i = 0; i < numPIDs; i++) {
                  pidList[i] = m_pidGenerator.generatePID(namespace).toString();
              }
              return pidList;
          } catch (IOException ioe) {
              throw new GeneralException(
                      "DefaultDOManager.getNextPID: Error " +
                              "generating PID, PIDGenerator returned unexpected error: (" +
                              ioe.getClass().getName() + ") - " +
                              ioe.getMessage());
          }
      }
docs: <p>
  Gets a list of the requested next available PIDs. the number of PIDs.
  </p>
  
  @param numPIDs
  The number of PIDs to generate. Defaults to 1 if the number is
  not a positive integer.
  @param namespace
  The namespace to be used when generating the PIDs. If null,
  the namespace defined by the <i>pidNamespace</i> parameter in
  the fedora.fcfg configuration file is used.
  @return An array of PIDs.
  @throws ServerException
  If an error occurs in generating the PIDs.