List<MimePart> parts = MessageUtils.attachmentsFromPart( this.message );
if ( parts.size() > 0 ) {
GWTAttachment[] attachments = new GWTAttachment[parts.size()];
for (int i = 0; i < parts.size(); i++) {
attachments[i] = new GWTAttachment();
String fileName = parts.get( i ).getFileName();
if ( StringUtils.isEmpty( fileName ) ) {
fileName = this.applicationContext.getMessage( "message.unknown.attachment", null, SessionManager
.get().getLocale() );
}