try {
AnalysisJobBuilder ajb = reader.create(file);
openJob(file, ajb);
} catch (NoSuchDatastoreException e) {
AnalysisJobMetadata metadata = reader.readMetadata(file);
int result = JOptionPane.showConfirmDialog(null, e.getMessage()
+ "\n\nDo you wish to open this job as a template?", "Error: " + e.getMessage(),
JOptionPane.OK_CANCEL_OPTION, JOptionPane.ERROR_MESSAGE);
if (result == JOptionPane.OK_OPTION) {
OpenAnalysisJobAsTemplateDialog dialog = new OpenAnalysisJobAsTemplateDialog(_windowContext, _configuration,