StringBuilder sb = new StringBuilder();
sb.append("[ Component(s) started : ");
// Call init method if any on each component
for (String componentName : this.componentNames) {
EZBComponent component = this.componentRegistry.getComponent(componentName);
component.start();
// append the component name
String name = component.getClass().getSimpleName();
// remove "Component" substring if any
if (name.endsWith(COMPONENT_STR)) {
name = name.substring(0, name.lastIndexOf(COMPONENT_STR));
}
sb.append(name);