def add_sld_to_layer(self, formatted_sld_object):

        # update layer via 2 PUT calls to the geoserver
        return self.add_sld_xml_to_layer_via_puts(formatted_sld_object,\
                self.layer_name)

        # use direct python, but doesn't properly clear tile cache
        #return self.add_sld_xml_to_layer(formatted_sld_object)