sample mirror api for glassware - this is developed from the base google code