if (serviceName == null || serviceName.equals(componentService.getName())) {
CompositeService compositeService = (CompositeService)componentService.getService();
if (compositeService != null) {
promotedService = compositeService.getPromotedService();
SCABinding scaBinding = promotedService.getBinding(SCABinding.class);
if (scaBinding != null) {
Component promotedComponent = scaBinding.getComponent();
if (serviceName != null) {
serviceName = "$promoted$." + serviceName;
}
componentContext = (ComponentContext)promotedComponent;
}