def METHOD_NAME(self):
    parts = self.params.split("/")
    resource_type, uid = None, None
    for par in parts:
        if par != "":
            if not resource_type:
                if self.valid_resource_type(par):
                    resource_type = par
                else:
                    error = "Invalid resource type : " + par
                    raise InvalidUriException(error)
            else:
                uid = par
                self.objects.append((resource_type, uid))
                resource_type, uid = None, None
    if resource_type:
        self.objects.append((resource_type, uid))