+ return props;
+
+ }
+
+ private static Properties generateProps() throws Error {
+ Properties mainProps = new Properties();
+ File out = new File("financial.dat");
+ if ( !out.exists()) {
+ try (FileOutputStream fos = new FileOutputStream(out)) {
+ fos.write("google.com\ntwitter.com\n".getBytes("UTF-8"));
+ } catch (IOException e) {
+ throw new Error(e);
+ }
+ }
+ mainProps.setProperty("highFinancialValue", out.getAbsolutePath());
+ return mainProps;