'Apply method
@param r: the S3Request
@param attr: controller options for this request'

def apply_method(self, r, **attr):

    output = {}
    if (r.http == 'POST'):
        if (r.method == 'clone'):
            output = clone(r, **attr)
        else:
            r.error(405, current.ERROR.BAD_METHOD)
    else:
        r.error(405, current.ERROR.BAD_METHOD)
    return output
