} else {
if(!(beanParam instanceof StringModel)) {
throw new TemplateException("<@writeAttribs> directive parameter 'bean' not defined properly. Should be a valid model object reference (no quotes) e.g. <@writeAttribs bean=customer.address ... />.", environment);
}
StringModel beanModel = (StringModel) beanParam;
bean = beanModel.getWrappedObject();
}
SimpleScalar attribsScalar = (SimpleScalar) params.get("attribs");
if(attribsScalar == null) {
if(params.containsKey("attribs")) {