/** * Checks if the given attribute is defined, this means, neither <code>null</code> nor <code> * ScriptingEngine.getUndefinedValue()</code>. * * @param model the data model to use * @param name Name of the attribute. * @return <code>true</code> if the attribute is defined. */ protected boolean isAttributeDefined(DataModel model, final String name) { final Object value = attributes.get(name); if (value == null) { return false; } return model.getUndefinedValue() != value; }