pretty printing for generic metadata models