Made methods public such that they can be reused by Spoofax Modelware and Eduardo