@Override
public Object invoke(ELContext elContext, Object[] objects) {
UploadCompletionEvent completionEvent = (UploadCompletionEvent) objects[0];
final List<FileUploadItem> files = completionEvent.getFiles();
for (FileUploadItem fileUploadItem : files) {
final FileAttachedEvent fileAttachedEvent = new FileAttachedEvent(fileAttachments,
new FileAttachment(fileUploadItem.getFile().getName(), fileUploadItem.getFileName(), fileUploadItem.getFile().length()));
fileAttachments.getFileAttachedListener().invoke(elContext, new Object[]{fileAttachedEvent});
}
return null; //void