} else if (credits.isSubstitution()) {
newCredits = new Substitution();
} else if (credits.isEquivalence()) {
final Equivalence equivalence = (Equivalence) credits;
final Equivalence newEquivalence = new Equivalence();
newEquivalence.setGrade(equivalence.getGrade());
newCredits = newEquivalence;
} else {
newCredits = new Credits();
}