I think this is going to require the caching we were planning so that the same object is returned every time.  (not sure if they have a suitable .equals for the file class, but I would assume repeated calls would result in different object, which would make vaadin sad)