if (FeedHelper.getCluster(entity, targetCluster.getName()).getType() == ClusterType.TARGET) {
for (org.apache.falcon.entity.v0.feed.Cluster feedCluster : entity.getClusters().getClusters()) {
if (feedCluster.getType() == ClusterType.SOURCE) {
String coordName = EntityUtil.getWorkflowName(Tag.REPLICATION, entity).toString();
Path basePath = getCoordPath(bundlePath, coordName);
Cluster srcCluster = ConfigurationStore.get().get(EntityType.CLUSTER, feedCluster.getName());
// workflow is serialized to a specific dir
Path sourceSpecificWfPath = new Path(basePath, srcCluster.getName());
// Different workflow for each source since hive credentials vary for each cluster
replicationMapper.createReplicationWorkflow(
targetCluster, srcCluster, sourceSpecificWfPath, coordName);