protected <S extends PropertySource<?>>S findPropertySource(Class<S> sourceClass){
  List<S> sources=findPropertySources(sourceClass);
  if (sources.size() == 0) {
    return null;
  }
  if (sources.size() > 1) {
    log.warn("Found more than one property source of type " + sourceClass);
  }
  return sources.get(0);
}

protected < S extends PropertySource < ? > > S findPropertySource ( Class < S > sourceClass ) { List < S > sources = findPropertySources ( sourceClass ) ; if ( sources . size ( ) == 0 ) { return null ; } if ( sources . size ( ) > 1 ) { log . warn ( "Found more than one property source of type " + sourceClass ) ; } return sources . get ( 0 ) ; }
finds one registered property source of the given type , logging a warning if multiple property sources of that type are available .
