'Translates Beta settings in appengine-web.xml to yaml.'

def TranslateBetaSettings(self):

    if ((not self.app_engine_web_xml.vm) and (self.app_engine_web_xml.env != '2')):
        return []
    settings = (self.app_engine_web_xml.beta_settings or {})
    if ('java_quickstart' in settings):
        del settings['java_quickstart']
    statements = []
    if settings:
        statements = ['beta_settings:']
        for name in sorted(settings):
            statements.append(('        %s:    %s' % (self.SanitizeForYaml(name), self.SanitizeForYaml(settings[name]))))
    return statements
