void triggerWildcardExpander(final Collection<File> allFiles,final WildcardContext wildcardContext) throws IOException {
  LOG.debug("wildcard resources: {}",allFiles);
  if (allFiles.isEmpty()) {
    final String message=String.format("No resource found for wildcard: %s",wildcardContext.getWildcard());
    LOG.warn(message);
    throw new IOException(message);
  }
  if (wildcardExpanderHandler != null) {
    try {
      wildcardExpanderHandler.apply(allFiles);
    }
 catch (    final IOException e) {
      throw e;
    }
catch (    final Exception e) {
      LOG.debug("wildcard expanding error. Reporting original exception",e);
      throw new IOException("Exception during expanding wildcard: " + e.getMessage());
    }
  }
}

void triggerWildcardExpander ( final Collection < File > allFiles , final WildcardContext wildcardContext ) throws IOException { LOG . debug ( "wildcard resources: {}" , allFiles ) ; if ( allFiles . isEmpty ( ) ) { final String message = String . format ( "No resource found for wildcard: %s" , wildcardContext . getWildcard ( ) ) ; LOG . warn ( message ) ; throw new IOException ( message ) ; } if ( wildcardExpanderHandler != null ) { try { wildcardExpanderHandler . apply ( allFiles ) ; } catch ( final IOException e ) { throw e ; } catch ( final Exception e ) { LOG . debug ( "wildcard expanding error. Reporting original exception" , e ) ; throw new IOException ( "Exception during expanding wildcard: " + e . getMessage ( ) ) ; } } }
uses the wildcardexpanderhandler to process all found files and directories .
