service-registry/src/main/java/de/evoila/osb/service/registry/manager/ServiceBrokerManager.java
public Optional<ServiceBroker> addCloudSite(ServiceBroker serviceBroker, CloudSite cloudSite) {
        if (serviceBroker.getSites().contains(cloudSite))
            return Optional.<ServiceBroker>of(serviceBroker);

        serviceBroker.getSites().add(cloudSite);
        return update(serviceBroker);
    }
/**
     * Adds a cloud site to a service broker's {@linkplain ServiceBroker#sites} list (if it is not already present) and updates the object in the storage.
     *
     * @param serviceBroker service broker object to add the cloud site
     * @param cloudSite     cloud site object to add
     * @return {@linkplain Optional} with the updated service broker, with the unchanged service broker or an empty one
     */
Adds a cloud site to a service broker's  ServiceBroker#sites list (if it is not already present) and updates the object in the storage.
@param serviceBroker service broker object to add the cloud site
@param cloudSite     cloud site object to add
@return  Optional with the updated service broker, with the unchanged service broker or an empty one
Adds a cloud site to a service broker ' s ServiceBroker#sites list ( if it is not already present ) and updates the object in the storage . @param serviceBroker service broker object to add the cloud site @param cloudSite cloud site object to add @return Optional with the updated service broker with the unchanged service broker or an empty one
public Optional<ServiceBroker> addCloudSite(ServiceBroker serviceBroker, CloudSite cloudSite) {
        if (serviceBroker.getSites().contains(cloudSite))
            return Optional.<ServiceBroker>of(serviceBroker);
        serviceBroker.getSites().add(cloudSite);
        return update(serviceBroker);
    }
public Optional < ServiceBroker > addCloudSite ( ServiceBroker serviceBroker , CloudSite cloudSite ) { if ( serviceBroker . getSites ( ) . contains ( cloudSite ) ) return Optional . < ServiceBroker > of ( serviceBroker ) ; serviceBroker . getSites ( ) . add ( cloudSite ) ; return update ( serviceBroker ) ; }
Adds a cloud site to a service broker's {@linkplain ServiceBroker#sites} list (if it is not already present) and updates the object in the storage.
Adds a cloud site to a service broker ' s { @linkplain ServiceBroker#sites } list ( if it is not already present ) and updates the object in the storage .