try { Account returnValue = new Account_Impl(getRandomMoney(), serverName); returnValue.setFactory(this); return returnValue; } catch (Exception ignored) {/* Creation of a local object should never fail*/ } return null;
int cents = (int) (Math.random() * 100000); return new Money(cents);