class BBInputSetup implements JavaDelegate {

    protected ServiceProxy getServiceProxy(Service service) {
        if (!service.getServiceProxyCustomizations().isEmpty()) {
            ServiceProxyResourceCustomization serviceProxyCatalog = getServiceProxyResourceCustomization(service);
            ServiceProxy serviceProxy = new ServiceProxy();
            serviceProxy.setModelInfoServiceProxy(
                    mapperLayer.mapServiceProxyCustomizationToServiceProxy(serviceProxyCatalog));
            Service sourceService = serviceProxyCatalog.getSourceService();
            ServiceInstance sourceServiceShell = new ServiceInstance();
            sourceServiceShell
                    .setModelInfoServiceInstance(mapperLayer.mapCatalogServiceIntoServiceInstance(sourceService));
            serviceProxy.setServiceInstance(sourceServiceShell);
            serviceProxy.setType(sourceService.getServiceType());
            return serviceProxy;
        } else {
            return null;
        }
    }

}