@Override
public int doEndTag() throws JspException {
try {
CmsJspActionElement cms = getCmsActionElement();
CmsFlexController controller = CmsFlexController.getController(cms.getRequest());
CmsObject cmso = cms.getCmsObject();
uri = CmsLinkManager.getAbsoluteUri(uri, controller.getCurrentRequest().getElementUri());
CmsFile file = cmso.readFile(uri);
String contents = new String(file.getContents(), encoding);
if (var != null) {
pageContext.setAttribute(var, contents, scope);
} else {