update for latest metamodel renames
update for latest metamodel changes
rewrite open types to get them to work as before
compile apply
apply is a reserved word