break;
}
case LDAP: {
LdapStructure ldapStruct = (LdapStructure) output;
TargetId targetId = ldapStruct.getLdapLocation().getTargetId();
Target replacement = (Target) service.getReplacement(targetId);
if (replacement != null) {
tf.setTargetId(replacement.getID());
ldapStruct.setLdapLocation((LdapLocation) replacement.getLocation());
}
break;
}
case Database: {
DatabaseStructure dbStruct = (DatabaseStructure) output;
TargetId targetId = dbStruct.getTargetId();
Target replacement = (Target) service.getReplacement(targetId);
if (replacement != null) {
tf.setTargetId(replacement.getID());
dbStruct.setTargetId(replacement.getID());
dbStruct.setDbLocation((DatabaseLocation) replacement.getLocation());
}
break;
}
default:
// No processing needed