class BBInputSetup implements JavaDelegate {

    protected ServiceSubscription getServiceSubscription(RequestDetails requestDetails, Customer customer) {
        org.onap.aai.domain.yang.ServiceSubscription aaiServiceSubscription =
                bbInputSetupUtils.getAAIServiceSubscription(customer.getGlobalCustomerId(),
                        requestDetails.getRequestParameters().getSubscriptionServiceType());
        if (aaiServiceSubscription != null) {
            return mapperLayer.mapAAIServiceSubscription(aaiServiceSubscription);
        } else {
            return null;
        }
    }

}