@startuml

skinparam sequenceMessageAlign center
skinparam sequenceReferenceBackgroundColor white
autonumber

mainframe **sd Get Business Sector**

participant ":BusinessSector" as BusinessSector #white
participant ":BusinessSectorContainer" as BusinessSectorContainer #white
participant ":businessSector:\nBusinessSector" as BS #white

-> BusinessSector++: getBusinessSectorByName(name)
    BusinessSector -> BusinessSectorContainer++: getBusinessSectorByName(name)
        loop#white for BusinessSectorContainer & hasName = false
        BusinessSectorContainer -> BS++: hasName(name)

        return true/false
        end
    return businessSector
return businessSector

@enduml