/**
* @see javax.servlet.jsp.tagext.TagSupport
*/
public int doEndTag() throws JspException {
String beanName = getBean();
ComponentsTree componentsTree = Application.lookup().getGlobalFactory().getTree();
Component component = componentsTree.getComponent(beanName);
if (component == null) {
log.error("Cannot write to component " + beanName + " as it doesn't exist.");
} else {
try {
component.setProperty(getProperty(), new String[]{getPropValue()});