We should probably find a way to factor this out for both the renderer and openhome, but this is ok for now.