Correctly use cssClass set in custom formatter