public Message process(final Message message) throws ActionProcessingException {
String addition = (String) message.getProperties().getProperty("addition");
File buildDirFile = new File(buildDir);
if(!buildDirFile.exists()) {
throw new ActionProcessingException("Invalid 'build.dir' dir '" + buildDirFile.getAbsolutePath() + "'.");
}
File file = new File(buildDirFile, FILE_PREFIX + addition);
try {
logger.info("Creating file " + file.getAbsolutePath());
file.createNewFile();
} catch (IOException e) {
throw new ActionProcessingException("Failed to create file '" + file.getAbsolutePath() + "'.");
}
return message;
}