Looping over the values of a Key Value field

Description

It can be hard to understand what is in a key value field.  The below code will loop over the values and spit out the keys and the values.

Code

${esc.hash}if (${esc.dollar}UtilMethods.isSet(${esc.dollar}content.metaData))
    <h2>Metadata</h2>
		<table class="metadata">
		  ${esc.hash}foreach(${esc.dollar}key in ${esc.dollar}content.metaData.entrySet())
			  ${esc.hash}if(${esc.dollar}key.key != "map")
				<tr>
					<td>${esc.dollar}key.key</td>
					<td>${esc.dollar}key.value</td>
					</tr>
			  ${esc.hash}end
		  ${esc.hash}end
		</table>
  ${esc.hash}end