class BBInputSetup implements JavaDelegate {

    protected Customer mapCustomer(String globalCustomerId, String subscriptionServiceType) {
        org.onap.aai.domain.yang.Customer aaiCustomer = this.bbInputSetupUtils.getAAICustomer(globalCustomerId);
        org.onap.aai.domain.yang.ServiceSubscription aaiServiceSubscription =
                this.bbInputSetupUtils.getAAIServiceSubscription(globalCustomerId, subscriptionServiceType);
        Customer customer = this.mapperLayer.mapAAICustomer(aaiCustomer);
        ServiceSubscription serviceSubscription = this.mapperLayer.mapAAIServiceSubscription(aaiServiceSubscription);
        if (serviceSubscription != null) {
            customer.setServiceSubscription(serviceSubscription);
        }
        return customer;
    }

}