public CompletionStage < ResponseBuilder > createResource ( final ResponseBuilder builder ) { LOGGER . debug ( "Creating resource as {}" , getIdentifier ( ) ) ; final TrellisDataset mutable = TrellisDataset . createDataset ( ) ; final TrellisDataset immutable = TrellisDataset . createDataset ( ) ; return handleResourceCreation ( mutable , immutable , builder ) . whenComplete ( ( a , b ) -> mutable . close ( ) ) . whenComplete ( ( a , b ) -> immutable . close ( ) ) ; }
Create a new resource .