def _get_complete_name(name, namespace_name = None):
    """
    Retrieves the complete (session attribute) name from the session
    attribute name and the namespace name.

    The complete name is created using the namespace name as a prefix
    to the final (and complete) value.

    :type name: String
    :param name: The session attribute name (base name).
    :type namespace_name: String
    :param namespace_name: The namespace name to be used as prefix.
    :rtype: String
    :return: The complete session attribute name, created through
    the prefix strategy.
    """

    # in case the namespace name is not set
    # no need to proceed with the prefix strategy
    # the name is the "original" name
    if not namespace_name: return name

    # creates the complete (session attribute) name by prepending the namespace
    # name to the (session attribute) name and returns it
    complete_name = namespace_name + "." + name
    return complete_name