if (keyToPublication.containsKey(key)) {
publication = (Publication) keyToPublication.get(key);
} else {
if (PublicationFactory.existsPublication(id, servletContextPath)) {
publication = new FilePublication(id, servletContextPath);
keyToPublication.put(key, publication);
}
}
// assert publication != null;