This mirrors the code available at https://code.google.com/a/eclipselabs.org/p/emf-profiles/