class LocalMessageStorage {

	public synchronized Collection<SimpleMessage> getMessagesAfter(long id) {
		if (storage.isEmpty()) {
			return Collections.emptySet();
		}

		return storage.entrySet().stream().filter(e -> e.getKey() > id).map(e -> e.getValue())
				.collect(Collectors.toSet());
	}

}