TextFileMessageSourceDescription messageSourceDescription = new TextFileMessageSourceDescription (name, filename);
Collection<MessagePropertyDescription> messagePropertyInfos = messageSourceDescription.getMessagePropertyDescriptions();
if (messagePropertyInfos != null) {
MonitorJobDescription jobDescription = new MonitorJobDescription (messageSourceDescription);
document.addJobDescription(jobDescription);
} else {
JOptionPane.showMessageDialog(this, "The file <" + filename + "> is not a valid message file.", "BAM Sample", JOptionPane.ERROR_MESSAGE);