}
private static ParameterStore openAndReadGaffFile(String gaffFileName) {
InputStream inputStream = null;
ParameterStore gaffParameterStore = null;
try {
inputStream = new FileInputStream(gaffFileName);
} catch (FileNotFoundException e) {
System.out.println("Cannot open file" + gaffFileName);
e.printStackTrace();
}
try {
gaffParameterStore = new ParameterStore();
gaffParameterStore.readParm(inputStream);
} catch (IOException e) {
System.out.println("Cannot parse ParameterStore file"
+ gaffFileName);
e.printStackTrace();
}
LOG.debug(gaffParameterStore.getTitle());
return gaffParameterStore;
}