class FileSessionStorage implements SessionStorage {

    @Override
    public HttpSessionImpl getSession(final String id) throws IOException {
        HttpSessionImpl session = null;
        if (isSessionIdValid(id)) {
            File file = new File(getSessionStoragePath(id));

            if (file.exists()) {
                session = readSession(id, file);
            } else {
                LOGGER.log(Level.FINE, "Session file does not exist {0} under {1}",
                        new Object[]{id, tempPath});
            }
        }

        return session;
    }

    public  FileSessionStorage(final String tempPath);

}