/*
(non-Javadoc)
@see org.springframework.plugin.core.PluginRegistry#getPluginOrDefaultFor(java.lang.Object, java.util.function.Supplier)
161586
@Override
	public T getPluginOrDefaultFor(S delimiter, Supplier<T> defaultSupplier) {

		Assert.notNull(delimiter, "Delimiter must not be null!");
		Assert.notNull(defaultSupplier, "Default supplier must not be null!");

		return getPluginFor(delimiter).orElseGet(defaultSupplier);
	}
373433
@Override
	public LinkRelation getCollectionResourceRelFor(java.lang.Class<?> type) {

		LookupContext context = LookupContext.forCollectionResourceRelLookup(type);

		return providers.getRequiredPluginFor(context).getCollectionResourceRelFor(type);
	}
1036409
protected final ProcessorDef[] getDefaultProviders(final ProcessorDef baseDef) {
    ProcessorDef extendsDef = getExtends();
    final Vector chain = new Vector();
    while (extendsDef != null && !chain.contains(extendsDef)) {
      chain.addElement(extendsDef);
      extendsDef = extendsDef.getExtends();
    }
    if (baseDef != null && getInherit()) {
      chain.addElement(baseDef);
    }
    final ProcessorDef[] defaultProviders = new ProcessorDef[chain.size()];
    chain.copyInto(defaultProviders);
    return defaultProviders;
  }
65386
protected Supplier<Set<Image>> overrideImageSupplier(Injector injector,
      Supplier<Set<Image>> originalSupplier) {
    return originalSupplier;
  }
1126102
public function getDefaultSource()
    {
        if (($name = $this->config()->default_source) && $source = Controller::curr()->{$name}) {
            return $source;
        }
    }
377538
@Override
    public List<String> getDefaultProviderChain() {
        List<String> provList = new ArrayList<>();
        String defaultChain = MonetaryConfig.getConfig().get("currencies.default-chain");
        if(defaultChain!=null) {
            String[] items = defaultChain.split(",");
            for (String item : items) {
                if (getProviderNames().contains(item.trim())) {
                    provList.add(item);
                } else {
                    Logger.getLogger(getClass().getName())
                            .warning("Ignoring non existing default provider: " + item);
                }
            }
        }
        else{
            Bootstrap.getServices(CurrencyProviderSpi.class).forEach(
                    p -> provList.add(p.getProviderName())
            );
        }
        return provList;
    }
399828
private String getDefaultBrowserAgent(Context context) {
        String userAgent = "";
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
            try {
                userAgent = WebSettings.getDefaultUserAgent(context);
            } catch (Exception ignore) {
                // A known Android issue. Webview packages are not accessible while any updates for chrome is in progress.
                // https://bugs.chromium.org/p/chromium/issues/detail?id=506369
            }
        }
        return userAgent;
    }
705713
private void addPluginConfigDefaultProperties() {
    for (ConfProp prop : ConfProp.values()) {
      if (conf.get(prop.name) == null)
        conf.set(prop.name, prop.defVal);
    }
  }
1186544
private String getDefaultPluginId() {
        if (defaultPluginId == null) {
            try {
                defaultPluginId = PropertyUtil.getValue("CAREWEB.INITIAL.SECTION", null);
                
                if (defaultPluginId == null) {
                    defaultPluginId = "";
                }
            } catch (Exception e) {
                defaultPluginId = "";
            }
        }
        
        return defaultPluginId;
    }
1163059
public FluentMatchingR<T, R> get(Supplier<R> supplier) {
    return get(fluentMatchingR, supplier);
  }
98106
public static <T> Function<Object, T> forSupplier(Supplier<T> supplier) {
		return input -> supplier.get();
	}
263074
function findDefaultPlugins() {
  const globPath = path.join(__dirname, BUILT_IN_DEFAULT_PLUGIN_FOLDER_NAME);
  if (!fs.existsSync(globPath)) {
    return [];
  }
  return walkSync(globPath, {
    directories: false,
    globs: [`${MARKBIND_PLUGIN_PREFIX}*.js`],
  }).map(file => path.parse(file).name);
}
712060
public String getRequiredConfigAttributeWithDefaultValueAndConfigId(Map<String, Object> props, String key, String defaultValue, String configId) {
        String result = getAndTrimConfigAttribute(props, key);
        if (key != null && result == null) {
            if (defaultValue != null) {
                result = defaultValue;
            } else {
                logMessageForMissingRequiredAttribute(key, configId);
            }
        }
        return result;
    }
541804
@SuppressWarnings("unchecked")
  public <C extends PrimitiveConfig<C>> C getPrimitiveDefault(String name) {
    return (C) primitiveDefaults.get(name);
  }
202470
public ConfigurationItem getDefaultItem(final String name) {
    if(name==null) throw new IllegalArgumentException("The passed name was null");
    return defaultConfItems.get(name);
  }
728530
public Constructor<?> getDefaultConstructorForFieldType(final Type fieldTypeFullyResolved,
            final ClassFieldCache classFieldCache) {
        if (!isTypeVariable) {
            return defaultConstructorForFieldType;
        } else {
            final Class<?> fieldRawTypeFullyResolved = JSONUtils.getRawType(fieldTypeFullyResolved);
            return classFieldCache.getDefaultConstructorForConcreteTypeOf(fieldRawTypeFullyResolved);
        }
    }
1333798
protected Supplier<Set<HardwareFlavor>> overrideHardwareFlavorSupplier(Injector injector,
      Supplier<Set<HardwareFlavor>> originalSupplier) {
    return originalSupplier;
  }