def METHOD_NAME(self, obj, item, index):
    """Service triggered each time an item is iterated in folderitems.
    The use of this service prevents the extra-loops in child objects.
    :obj: the instance of the class to be foldered
    :item: dict containing the properties of the object to be used by
        the template
    :index: current index of the item
    """
    obj = api.get_object(obj)
    title = obj.Title()
    url = obj.absolute_url()
    item["replace"]["Title"] = get_link(url, value=title)
    sampletype = obj.getSampleType()
    if sampletype:
        title = sampletype.Title()
        url = sampletype.absolute_url()
        item["replace"]["SampleType"] = get_link(url, value=title)
    dynamic_spec = obj.getDynamicAnalysisSpec()
    if dynamic_spec:
        title = dynamic_spec.Title()
        url = api.get_url(dynamic_spec)
        item["replace"]["DynamicSpec"] = get_link(url, value=title)
    return item