{
      IItemColorProvider itemColorProvider = (IItemColorProvider)adapterFactory.adapt(object, IItemColorProvider.class);
      if (itemColorProvider != null)
      {
        // And delegate the call.
        //
        result = itemColorProvider.getForeground(object);
      }
    }