class DocumentStorage {

    public void clear(final String sessionId) throws URISyntaxException {
        final Collection<GrammarDocument> currentDocuments = sessionDocuments
                .get(sessionId);
        if (currentDocuments == null) {
            LOGGER.warn("session '" + sessionId + "' unknown. cannot clear");
            return;
        }
        for (GrammarDocument document : currentDocuments) {
            final URI uri = document.getURI();
            final String path = uri.getPath();
            final URI pathUri = new URI(path);
            documents.remove(pathUri);
        }
        sessionDocuments.remove(sessionId);
        LOGGER.info("cleared document storage for session '" + sessionId + "'");
    }

    public  DocumentStorage();

}