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
/* (non-Javadoc)
     * @see ResourceManager#create(DeviceResourceDescriptor)
     */
    public final Object create(DeviceResourceDescriptor descriptor) throws DeviceResourceException {
        
        if (map == null) {
            map = new HashMap();
        }
        
        
        RefCount count = (RefCount)map.get(descriptor);
        if (count != null) {
            
            
            count.count++;
            return count.resource;
        }
        
        
        Object resource = allocate(descriptor);
        
        count = new RefCount(resource);
        map.put(descriptor, count);
        
        return resource;
    }
    /* (non-Javadoc)
     * @see ResourceManager#destroy(DeviceResourceDescriptor)
     */