+ public Optional<ServiceInstance> getServiceInstanceByIdWithDepth(String serviceInstanceId, String serviceType,
+ String globalSubscriberId) {
+ Response response =
+ new AAIResourcesClient()
+ .getFullResponse(AAIUriFactory
+ .createResourceUri(AAIFluentTypeBuilder.business().customer(globalSubscriberId)
+ .serviceSubscription(serviceType).serviceInstance(serviceInstanceId))
+ .depth(Depth.ALL));
+ return Optional.ofNullable(response.readEntity(ServiceInstance.class));
+ }
+