private static void printFileWriters(String prefix, Map<String, FileWritingMessageHandler> fileWriters) {

        Assert.notNull(fileWriters, "Mandatory argument missing.");

        for (String key : fileWriters.keySet()) {
            FileWritingMessageHandler writeTarget = fileWriters.get(key);
            File outDirectory = (File) new DirectFieldAccessor(writeTarget).getPropertyValue("destinationDirectory");
            if (outDirectory != null)
                LOGGER.info("{} target directory configured: {}", prefix, outDirectory.getAbsolutePath());
        }

    }