I don't understand how this works.
Lookups.getNamed() returns a NamedLookup (is that correct?) which has no size() method.
Is there an isEmpty() ?