'Translates SimpleHandler to static handler yaml statements.'

def TranslateHandler(self, h):

    root = self.app_engine_web_xml.public_root
    regex_string = h.Regexify()
    if regex_string.startswith(root):
        regex_string = regex_string[len(root):]
    welcome_files = h.GetProperty('welcome')
    if welcome_files:
        statements = []
        for welcome_file in welcome_files:
            statements += [('-    url:    (%s)' % regex_string), ('        static_files:    __static__%s\\1%s' % (root, welcome_file)), '        upload:    __NOT_USED__', '        require_matching_file:    True']
            statements += self.TranslateAdditionalOptions(h)
            statements += self.TranslateAdditionalStaticOptions(h)
        return statements
    if (h.GetProperty('type') != 'static'):
        return []
    statements = [('-    url:    (%s)' % regex_string), ('        static_files:    __static__%s\\1' % root), '        upload:    __NOT_USED__', '        require_matching_file:    True']
    return ((statements + self.TranslateAdditionalOptions(h)) + self.TranslateAdditionalStaticOptions(h))
