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
Object resource;
        int count = 1;
        
        RefCount(Object resource) {
            this.resource = resource;
        }
    }
    
    /**
     * Called the first time a resource is requested. Should allocate and return a resource
     * of the correct type. 
     * 
     * @since 3.1 
     *
     * @param descriptor identifier for the resource to allocate
     * @return the newly allocated resource
     */
    protected abstract Object allocate(DeviceResourceDescriptor descriptor) throws DeviceResourceException;
    /**
     * Called the last time a resource is dereferenced. Should release any resources reserved by
     * allocate(...).
     * 
     * @since 3.1 
     *
     * @param resource resource being deallocated
     * @param descriptor identifier for the resource
     */
    protected abstract void deallocate(Object resource, DeviceResourceDescriptor descriptor);