add feature to dump to existing model with context, so we can include
the role and project mappings easily in other functions without
serialisation in between