return ConvertUtil.convert( folder, true );
}
catch (MailFolderException e) {
log.error( e.getMessage(), e );
if ( e.hasErrorCode( IErrorCodes.EXCEPTION_FOLDER_ALREADY_EXIST ) ) {
throw new GWTMailFolderExistException( null, e.getFolder().getName() );
}
else {
throw new GWTMailFolderException( null, e.getFolder().getName() );
}
}