You could have had this if clause in the value of the includeClasses attribute like in the example below, i assume jstl lets you do that so that you end up with one line just like you did before instead of all these but i guess this is fine too.

${m.isFrequencyMapping ? "Frequency" : "Units Of Measure"}