class DocumentStorage {

    public URI addGrammarDocument(final String sessionId,
            final GrammarDocument document) throws URISyntaxException {
        Collection<GrammarDocument> currentDocuments = getCurrentSessionDocuments(sessionId);
        currentDocuments.add(document);
        final URI localUri = new URI(
                InternalGrammarDocumentHandler.CONTEXT_PATH + "/" + sessionId
                        + "/" + document.hashCode());
        documents.put(localUri, document);
        final URI serverUri = server.getURI();
        final URI uri = new URI(serverUri
                + InternalGrammarDocumentHandler.CONTEXT_PATH.substring(1)
                + "/" + sessionId + "/" + document.hashCode());
        document.setURI(uri);
        LOGGER.info("added grammar document at '" + uri + "'");
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("added document " + document);
        }
        return null;
    }

    public  DocumentStorage();

}