Properties props = new Properties();
props.load(TransferScript.class.getClassLoader()
.getResourceAsStream("com/bank/config/app.properties"));
TransferService transferService = new DefaultTransferService(
new JdbcAccountRepository(dataSource),
new FlatFeePolicy(Double.valueOf(props.getProperty("flatfee.amount"))));
transferService.setMinimumTransferAmount(
Double.valueOf(props.getProperty("minimum.transfer.amount")));
// generate a random amount between 10.00 and 90.00 dollars
double amount = (new Random().nextInt(8) + 1) * 10;
TransferReceipt reciept = transferService.transfer(amount, "A123", "C456");
System.out.println(reciept);
}