'Registers a service dependencies.
:param s:                   The service to register
:param servicedependencies: The servicedependencies container'

def register_service_dependencies(self, s, servicedependencies):

    sdeps = [d.strip() for d in getattr(s, 'service_dependencies', [])]
    i = 0
    hname = ''
    for elt in sdeps:
        if ((i % 2) == 0):
            hname = elt
        else:
            desc = elt
            if (hasattr(s, 'service_description') and hasattr(s, 'host_name')):
                if (hname == ''):
                    hname = s.host_name
                servicedependencies.add_service_dependency(s.host_name, s.service_description, hname, desc)
        i += 1
