code: public void createResource(final InputStream inputStream, final String resourceName)
          throws JaxRxException {
          synchronized (resourceName) {
              if (inputStream == null) {
                  throw new JaxRxException(400, "Bad user request");
              } else {
                  try {
                      shred(inputStream, resourceName);
                  } catch (final TTException exce) {
                      throw new JaxRxException(exce);
                  }
              }
          }
      }
docs: This method is responsible to create a new database.
  
  @param inputStream
  The stream containing the XML document that has to be stored.
  @param resourceName
  The name of the new database.
  @throws JaxRxException
  The exception occurred.