Entry entry = (createEntry(feature, object));
Entry entry = FeatureMapUtil.isFeatureMap(feature) ? (Entry)object : createEntry(feature, object);
  public NotificationChain basicAdd(EStructuralFeature feature, Object object, NotificationChain notifications)  {    Entry entry = (createEntry(feature, object));    notifications = basicAdd(entry, notifications);    if (isNotificationRequired())    {      boolean oldIsSet = !isEmpty(feature);      NotificationImpl notification =         feature.isMany() ?          createNotification            (Notification.ADD,             feature,             null,              object,             indexOf(feature, object),             oldIsSet) :          createNotification            (Notification.SET,              feature,             feature.getDefaultValue(),              object,             Notification.NO_INDEX,             oldIsSet);      if (notifications != null)      {        notifications.add(notification);      }      else      {        notifications = notification;      }    }    return notifications;  }