if (entity.getEntityType().equals(EntityType.CLUSTER)) {
return tagList;
}
Process process = null;
String entityNameToMatch = null;
if (dependentEntity.getEntityType().equals(EntityType.PROCESS)) {
process = (Process) dependentEntity;
entityNameToMatch = entity.getName();
} else if (dependentEntity.getEntityType().equals(EntityType.FEED)
&& entity.getEntityType().equals(EntityType.PROCESS)) {
process = (Process) entity;
entityNameToMatch = dependentEntity.getName();
}
if (process != null) {
for (Input i : process.getInputs().getInputs()) {
if (i.getFeed().equals(entityNameToMatch)) {
tagList.add("Input");
}
}
for (Output o : process.getOutputs().getOutputs()) {
if (o.getFeed().equals(entityNameToMatch)) {
tagList.add("Output");
}
}
}