Found correct strategy for querying and storing model elements