// implementation
private void init()
{
// name property
ClassName nameAnnotation = clazz.getAnnotation(ClassName.class);
if (nameAnnotation != null)
name = nameAnnotation.value();
else
name = CoreUtils.getShortName(clazz);
// icon property
Icon iconAnnotation = clazz.getAnnotation(Icon.class);