}
private String createName() {
// XXX: This is super ugly...
if (activity instanceof IntegrationEntityPipelineActivity && !activity.isEmpty()) {
IntegrationEntityPipelineActivity e = (IntegrationEntityPipelineActivity) activity;
return "Edit " + ((IntegrationEntity) e.getContent()).getName() + "...";
}
return "Edit...";
}