riable-name">ic</span> = <span class="keyword">new</span> <span class="type">InstanceContent</span> ();
    ic.add(firstObject);
    <span class="keyword">return</span> <span class="keyword">new</span> <span class="type">AbstractLookup</span> (ic);
</pre>

<p>In case it is expensive to actually compute the object in the
lookup, but there is some cheap "key" which can easily generate it,
you may instead register the key by passing in an
{@link org.openide.util.lookup.InstanceContent.Convertor InstanceContent