@Override @SuppressFBWarnings("OBL_UNSATISFIED_OBLIGATION") // Stream is closed by parseFromStream(..) method protected void execute(final File inputDir) { final File mappingFile = this.mappingFileParser.findMappingFile(inputDir); if (mappingFile == null) { this.logger.error("Directory '" + inputDir + "' does not exist or an I/O error occured."); return; } try { final ReaderRegistry<String> classNameRegistry = this.mappingFileParser.parseFromStream(new FileInputStream(mappingFile)); this.classNameRegistryRepository.put(inputDir, classNameRegistry); this.outputPort.send(inputDir); // final String filePrefix = this.mappingFileParser.getFilePrefixFromMappingFile(mappingFile); // context.put(this.filePrefixOutputPort, filePrefix); } catch (final FileNotFoundException e) { this.logger.error("Mapping file not found.", e); // and skip this directory } }