ModuleDefinition def = reg.getModuleDefinition(SchedulerTaskModuleType.class, getClass().getName());
if (def == null) {
return "Task " + getClass().getName();
}
SchedulerTaskProperties props = (SchedulerTaskProperties) def.getProperties();
if (props == null || definition == null) {
return def.getTitle(locale);
}
return props.createTitle(definition, locale);
}