for (MaliciousAttachmentConfig value : element.getGenerateAttachmentList()) {
File file = new File(value.getFilename());
try {
if (!file.exists() || file.length() == 0) {
file = new RandomFile(value.getSize(), value.getFilename(), value.getContentType()).next();
}
} catch (IOException e) {
SoapUI.logError(e);
}
}