service-registry/src/main/java/de/evoila/osb/service/registry/model/service/broker/SharedContext.java
public void initShared(RegistryServiceInstance serviceInstance, ServiceDefinition definition) {
        shared = true;
        if (serviceInstanceId == null || serviceInstanceId.isEmpty()) serviceInstanceId = serviceInstance.getId();
        if (serviceDefinitionId == null || serviceDefinitionId.isEmpty()) serviceDefinitionId = serviceInstance.getServiceDefinitionId();
        if (planId == null || planId.isEmpty()) planId = serviceInstance.getPlanId();
        if (organization == null || organization.isEmpty()) organization = serviceInstance.getOrganizationGuid();
        if (space == null || space.isEmpty()) space = serviceInstance.getSpaceGuid();
        if (nameSpace == null || nameSpace.isEmpty()) nameSpace = serviceInstance.getNameSpace();
        if (description == null || description.isEmpty())
            description = "Definition: " + (definition == null ? "unknown-service" : definition.getName())
                    + ", Org: " + organization
                    + ", Space: " + space
                    + ", Namespace: " + nameSpace;
    }
/**
     * Sets shared to true and initializes the SharedContext object with values from the service instance.
     * This should not be called upon an uninitialized SharedContext object with a non original service instance,
     * because this would set up the SharedContext in way, which does not refer to an actual existing service instance.
     * Following fields are set if they are empty or null.
     * <ul>
     *     <li>serviceInstanceId</li>
     *     <li>serviceDefinitionId</li>
     *     <li>planId</li>
     *     <li>organization</li>
     *     <li>space</li>
     *     <li>nameSpace</li>
     *     <li>description</li>
     * </ul>
     * @param serviceInstance
     * @param definition
     */
Sets shared to true and initializes the SharedContext object with values from the service instance.
This should not be called upon an uninitialized SharedContext object with a non original service instance,
because this would set up the SharedContext in way, which does not refer to an actual existing service instance.
Following fields are set if they are empty or null.

serviceInstanceId
serviceDefinitionId
planId
organization
space
nameSpace
description

@param serviceInstance
@param definition
Sets shared to true and initializes the SharedContext object with values from the service instance . This should not be called upon an uninitialized SharedContext object with a non original service instance because this would set up the SharedContext in way which does not refer to an actual existing service instance . Following fields are set if they are empty or null . serviceInstanceId serviceDefinitionId planId organization space nameSpace description @param serviceInstance @param definition
public void initShared(RegistryServiceInstance serviceInstance, ServiceDefinition definition) {
        shared = true;
        if (serviceInstanceId == null || serviceInstanceId.isEmpty()) serviceInstanceId = serviceInstance.getId();
        if (serviceDefinitionId == null || serviceDefinitionId.isEmpty()) serviceDefinitionId = serviceInstance.getServiceDefinitionId();
        if (planId == null || planId.isEmpty()) planId = serviceInstance.getPlanId();
        if (organization == null || organization.isEmpty()) organization = serviceInstance.getOrganizationGuid();
        if (space == null || space.isEmpty()) space = serviceInstance.getSpaceGuid();
        if (nameSpace == null || nameSpace.isEmpty()) nameSpace = serviceInstance.getNameSpace();
        if (description == null || description.isEmpty())
            description = "Definition: " + (definition == null ? "unknown-service" : definition.getName())
                    + ", Org: " + organization
                    + ", Space: " + space
                    + ", Namespace: " + nameSpace;
    }
public void initShared ( RegistryServiceInstance serviceInstance , ServiceDefinition definition ) { shared = true ; if ( serviceInstanceId == null || serviceInstanceId . isEmpty ( ) ) serviceInstanceId = serviceInstance . getId ( ) ; if ( serviceDefinitionId == null || serviceDefinitionId . isEmpty ( ) ) serviceDefinitionId = serviceInstance . getServiceDefinitionId ( ) ; if ( planId == null || planId . isEmpty ( ) ) planId = serviceInstance . getPlanId ( ) ; if ( organization == null || organization . isEmpty ( ) ) organization = serviceInstance . getOrganizationGuid ( ) ; if ( space == null || space . isEmpty ( ) ) space = serviceInstance . getSpaceGuid ( ) ; if ( nameSpace == null || nameSpace . isEmpty ( ) ) nameSpace = serviceInstance . getNameSpace ( ) ; if ( description == null || description . isEmpty ( ) ) description = "Definition: " + ( definition == null ? "unknown-service" : definition . getName ( ) ) + ", Org: " + organization + ", Space: " + space + ", Namespace: " + nameSpace ; }
Sets shared to true and initializes the SharedContext object with values from the service instance.
Sets shared to true and initializes the SharedContext object with values from the service instance .