@staticmethod
def _get_name_from_dn(dn):
    """
        Get the instance name from the dn

        :param dn: string containing the distinguished name URL
        :return: string containing the name
        """
    if '/inst-' in dn:
        name = dn.split('/sys/inst-')[1].split('/')[0]
        return name
    elif '/ctx-' in dn:
        name = dn.split('/sys/ctx-')[1].split('/')[0]
        return name
    else:
        return None
