'Get the website configuration as a
:class:`boto.s3.website.WebsiteConfiguration` object.'

def get_website_configuration_obj(self, headers=None):

    config_xml = self.get_website_configuration_xml(headers=headers)
    config = website.WebsiteConfiguration()
    h = handler.XmlHandler(config, self)
    xml.sax.parseString(config_xml, h)
    return config
