final Number number = (Number) ((Money) object).getAmount(); return new HtmlText(new DecimalFormat(getFormat()).format(number));
if (object != null) { final Number number = (Number) ((Money) object).getAmount(); return new HtmlText(new DecimalFormat(getFormat()).format(number)); } else { return new HtmlText(""); }
    protected Layout getLayout(Object object, Class type) {	return new Layout() {	    @Override	    public HtmlComponent createComponent(Object object, Class type) {		final Number number = (Number) ((Money) object).getAmount();		return new HtmlText(new DecimalFormat(getFormat()).format(number));	    }	};    }