private static String substituteUnresolvedMetaComponentId(FacesContext context, UIComponent component,
String metaComponentId) {
Iterator<MetaComponentResolver> iterator = createResolversChainIterator(component);
while (iterator.hasNext()) {
MetaComponentResolver metaComponentResolver = (MetaComponentResolver) iterator.next();
String resolvedId = metaComponentResolver.substituteUnresolvedClientId(context, component, metaComponentId);
if (resolvedId != null) {
return resolvedId;
}
}