Port util classes from designer

- ported a couple utility classes from Designer
Can you remove these annotations as they do not apply to komodo?