public void removeListener(final int listenerId) {
        lock.writeLock().lock();
        try {
            listeners.remove(listenerId);
        } finally {
            lock.writeLock().unlock();
        }
    }
Helper class for those classes that provide listener concepts. Manages a bunch of listeners.
main/src/main/java/cgeo/geocaching/utils/ListenerHelper.java