if (null == component.getFamily()) {
component.setFamily(namingConventions.inferUIComponentFamily(component.getId()));
}
// add facelet tag if missing
if (component.getTags().isEmpty()) {
TagModel tag = new TagModel();
component.getTags().add(tag);
tag.setName(namingConventions.inferTagName(component.getId()));
tag.setGenerate(false);
tag.setType(TagType.Facelets);
}
} catch (RuntimeException e) {
throw new CdkException("Caught error when verifying component " + component, e);
}
}