var contentResult = StructNew(); var result = StructNew(); // For textblock updating allow populateContent calls to use csContent_1_0.populateContent if ( arguments.forceElementType EQ "textblock" ) { variables.ccapi = server.ADF.objectFactory.getBean("ccapi_1_0"); contentResult = super.populateContent(argumentCollection=arguments); } else { // Adding lock here to prevent multiple CCAPI calls which result in "security-exception -- conflict" error message. lock type="exclusive" name="CCAPIPopulateContent" timeout="30" { // Call the API apiElement Lib Component contentResult = variables.apiElement.populateCustom(elementName=arguments.elementName, data=arguments.data, forceSubsiteID=arguments.forceSubsiteID, forcePageID=arguments.forcePageID, forceLogout=arguments.forceLogout, forceControlName=arguments.forceControlName, forceControlID=arguments.forceControlID); } } // Format the result in the way that was previously constructed result = contentResult; if ( StructKeyExists(contentResult,"status") ) result.contentUpdated = contentResult.status; return result;