public double processTaxFactorFor(Person person) { try { double taxFactor = taxService.calculateTaxFactorFor(person); taxService.updateTaxData(taxFactor, person); return taxFactor; } catch (Exception e) { System.err.printf( "Exception [%s] occurred while trying to calculate tax factor for person [%s]%n", e, person.getName()); return INVALID_TAX_FACTOR; } }