2019.8.35
private static void getComponentBindings(Component c, Map<String, Component> namedComponents){
String name = c.getName();
if(name != null){
namedComponents.put(name, c);
}
if(c instanceof Container){
for(Component child : ((Container) c).getComponents()){
getComponentBindings(child, namedComponents);
}
}
}