@classmethod
def _get_name_from_dn(cls, dn):
    """
        Get the instance name from the dn

        :param dn: string containing the distinguished name URL
        :return: string containing the name or None if not present
        """
    delimits = cls._get_name_dn_delimiters()
    name = None
    if len(delimits) == 2:
        if delimits[0] in dn:
            name = dn.split(delimits[0])[1].split(delimits[1])[0]
    elif len(delimits) == 1:
        if delimits[0] in dn:
            name = dn.split(delimits[0])[1]
    return name
