I don't like this at all. Imho vmType should be passed as a parameter. I'll be soon making it configurable and I don't won't to parse params here.