code: def get_container_for(self, instance):
          
          if IReferenceAnalysis.providedBy(instance):
              return api.get_uid(instance.getSample())
          return instance.getRequestUID()
docs: Returns the container id used in slots to group analyses