class SeriesRegistry implements Serializable {

    public synchronized List<BundleType> remove(SeriesType series, Class rendererClass) {
        ArrayList<BundleType> removedItems = new ArrayList<>();
        for(Iterator<BundleType> it = registry.iterator(); it.hasNext();) {
            BundleType b = it.next();
            if(b.getSeries() == series && b.getFormatter().getRendererClass() == rendererClass) {
                it.remove();
                removedItems.add(b);
            }
        }
        return removedItems;
    }

}