def METHOD_NAME(self, out):
    dflprinc = None
    thisrealm = None
    ccache_dict = dict()
    for line in [ln for ln in out.split('\n') if len(ln) > 0]:
        if line.startswith("Default principal"):
            dflprinc = line.split()[2]
            thisrealm = '@' + dflprinc.split('@')[1]
        elif thisrealm is not None and line.endswith(thisrealm):
            svc = line.split()[-1]
            if dflprinc in ccache_dict:
                ccache_dict[dflprinc].append(svc)
            else:
                ccache_dict[dflprinc] = [svc]
    return ccache_dict