code: private static RenderQuality  parseRenderQuality(String val)
     {
        switch (val)
        {
           case "auto":            return RenderQuality.auto;
           case "optimizeQuality": return RenderQuality.optimizeQuality;
           case "optimizeSpeed":   return RenderQuality.optimizeSpeed;
           default:                return null;
        }
     }
docs: Parse a rendering quality property