if(componentModelClassName != null && !componentModelClassName.equals(""))
{
try
{
ComponentModel componentModel = (ComponentModel)loadExtensionClass(componentModelClassName).newInstance();;
componentModel.prepare(template, this.getController(), this.getController().getComponentLogic().getInfoGlueComponent().getModel());
}
catch (Exception e)
{
logger.error("The component '" + this.getController().getComponentLogic().getInfoGlueComponent().getName() + "' stated that class: " + componentModelClassName + " should be used as model. An exception was thrown when it was invoked: " + e.getMessage(), e);
}