Bug 135088 [JFace] AbstractResourceManager.find() returns a RefCount instead of the created resource
M6 If you attempt to call find on an AbstractResourceManager subclass you will get back a RefCount object instead of the resource bound to the desired descriptor. RefCount is a private class that is unusable to clients of this API. This should be addressed for 3.2 to address the intention of the method description.
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/AbstractResourceManager.java
public final void destroy(DeviceResourceDescriptor descriptor) {
        
        if (map == null) {
            return;
        }
        
        
        RefCount count = (RefCount)map.get(descriptor);
        if (count != null) {
            
            count.count--;
            if (count.count == 0) {
                
                deallocate(count.resource, descriptor);
                map.remove(descriptor);
            }
        }
        
        
        if (map.isEmpty()) {
            map = null;
        }
    }
    /**
     * Deallocates any resources allocated by this registry that have not yet been
     * deallocated.
     * 
     * @since 3.1 
     */
    public void dispose() {