Rename BaseTemplate::clear to getClear to avoid conflicts