service-registry/src/main/java/de/evoila/osb/service/registry/manager/RegistryServiceInstanceManager.java
public RegistryServiceInstance searchServiceInstance(String serviceInstanceId, HttpStatus resourceNotFoundExceptionCustomStatusCode) throws ResourceNotFoundException {
        Optional<RegistryServiceInstance> serviceInstance = get(serviceInstanceId);
        if (!serviceInstance.isPresent())
            throw new ResourceNotFoundException("service instance", resourceNotFoundExceptionCustomStatusCode);
        return serviceInstance.get();
    }
/**
     * Searches for an instance with the given serviceInstanceId while using the default http error code for the {@linkplain ResourceNotFoundException}
     *
     * @param serviceInstanceId                         id to identify the instance with
     * @param resourceNotFoundExceptionCustomStatusCode custom {@linkplain HttpStatus} for the potential thrown {@linkplain ResourceNotFoundException}
     * @return an instance matching the given id, guaranteed to not be null
     * @throws ResourceNotFoundException if no matching instance was found
     */
Searches for an instance with the given serviceInstanceId while using the default http error code for the  ResourceNotFoundException
@param serviceInstanceId                         id to identify the instance with
@param resourceNotFoundExceptionCustomStatusCode custom  HttpStatus for the potential thrown  ResourceNotFoundException
@return an instance matching the given id, guaranteed to not be null
@throws ResourceNotFoundException if no matching instance was found
Searches for an instance with the given serviceInstanceId while using the default http error code for the ResourceNotFoundException @param serviceInstanceId id to identify the instance with @param resourceNotFoundExceptionCustomStatusCode custom HttpStatus for the potential thrown ResourceNotFoundException @return an instance matching the given id guaranteed to not be null @throws ResourceNotFoundException if no matching instance was found
public RegistryServiceInstance searchServiceInstance(String serviceInstanceId, HttpStatus resourceNotFoundExceptionCustomStatusCode) throws ResourceNotFoundException {
        Optional<RegistryServiceInstance> serviceInstance = get(serviceInstanceId);
        if (!serviceInstance.isPresent())
            throw new ResourceNotFoundException("service instance", resourceNotFoundExceptionCustomStatusCode);
        return serviceInstance.get();
    }
public RegistryServiceInstance searchServiceInstance ( String serviceInstanceId , HttpStatus resourceNotFoundExceptionCustomStatusCode ) throws ResourceNotFoundException { Optional < RegistryServiceInstance > serviceInstance = get ( serviceInstanceId ) ; if ( ! serviceInstance . isPresent ( ) ) throw new ResourceNotFoundException ( "service instance" , resourceNotFoundExceptionCustomStatusCode ) ; return serviceInstance . get ( ) ; }
Searches for an instance with the given serviceInstanceId while using the default http error code for the {@linkplain ResourceNotFoundException}
 @param serviceInstanceId                         id to identify the instance with
 @param resourceNotFoundExceptionCustomStatusCode custom {@linkplain HttpStatus} for the potential thrown {@linkplain ResourceNotFoundException}
 @return an instance matching the given id, guaranteed to not be null
 @throws ResourceNotFoundException if no matching instance was found
Searches for an instance with the given serviceInstanceId while using the default http error code for the { @linkplain ResourceNotFoundException } @param serviceInstanceId id to identify the instance with @param resourceNotFoundExceptionCustomStatusCode custom { @linkplain HttpStatus } for the potential thrown { @linkplain ResourceNotFoundException } @return an instance matching the given id guaranteed to not be null @throws ResourceNotFoundException if no matching instance was found