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 ) ; } } } }
This method is responsible to create a new database .