@Override
    public Account createNewChild(TreeMap<String, String> properties) {
        String name = properties.get(NAME);
        Account account = new Account(name);
        String typeName = properties.get(Account.TYPE);
        if(typeName!=null){
            account.setType(accountTypes.getBusinessObject(typeName));
        }
        String defaultAmountString = properties.get(Account.DEFAULTAMOUNT);
        if(defaultAmountString!=null){
            try{
                account.setDefaultAmount(new BigDecimal(defaultAmountString));
            } catch (NumberFormatException nfe){
                account.setDefaultAmount(null);
            }
        }
        return account;
    }