if (selectedComponent == null) {
OptionBox.showMessageDialog(null, "Unable to create duplicate of this object!", "Error creating duplicate.", OptionBox.ERROR_MESSAGE);
return;
}
DuplicateObjectDialog dialog = new DuplicateObjectDialog(actionContext.getTargetHousing().getHostedFrame(),
selectedComponent.getDisplayName());
String name = dialog.getConfirmedTelemetryGroupName();
if (!StringUtil.isEmpty(name)) {
AbstractComponent duplicate = selectedComponent.clone();
ComponentInitializer ci = duplicate.getCapability(ComponentInitializer.class);
ci.setCreator(GlobalContext.getGlobalContext().getUser().getUserId());