@kborchers trying to think if this bit of code should go in the core.  

might make sense if you are just using the datamanager?