class ComponentUtils {

    public static void updateIdWithSuffix(LifecycleElement element, String idSuffix) {
        if (StringUtils.isBlank(idSuffix)) {
            return;
        }

        if (element != null) {
            element.setId(element.getId() + idSuffix);
        }

        if (element instanceof Container) {
            LayoutManager manager = ((Container) element).getLayoutManager();

            if (manager != null) {
                manager.setId(manager.getId() + idSuffix);
            }
        }
    }

    private  ComponentUtils();

}