The default EO templates don't set the type on the ERXKey objects so shouldn't there be a fallback when ```erxKey.type() == null ```? At least there should be a hint in the javadoc that the param *flatten* will only have an impact if the ERXKeys have a type set. On the other side, those old EO templates could get a dedusting some time...