Returns given attribute leaf.

    Usage::

        >>> get_leaf("grandParent|parent|child")
        u'child'

    :param attribute: Attribute.
    :type attribute: unicode
    :param namespace_splitter: Namespace splitter character.
    :type namespace_splitter: unicode
    :return: Attribute foundations.namespace.
    :rtype: unicode

def get_leaf(attribute, namespace_splitter=NAMESPACE_SPLITTER):
    """
    Returns given attribute leaf.

    Usage::

        >>> get_leaf("grandParent|parent|child")
        u'child'

    :param attribute: Attribute.
    :type attribute: unicode
    :param namespace_splitter: Namespace splitter character.
    :type namespace_splitter: unicode
    :return: Attribute foundations.namespace.
    :rtype: unicode
    """

    return foundations.common.get_last_item(attribute.split(namespace_splitter))