Does anybody know if there is a way to programmatically get the current framework ID?
Yes you can get the attribute on Play class
Play.id