if (alignment instanceof Leading) {
Leading leading = (Leading) alignment.clone();
leading.setLeading(postLead);
constraints = new Constraints(constraints.getHorizontal(), leading);
} else if (alignment instanceof Bilateral) {
Bilateral bilateral = (Bilateral) alignment.clone();
bilateral.setLeading(postLead);
constraints = new Constraints(constraints.getHorizontal(), bilateral);
} else if (alignment instanceof Trailing) {
Bilateral bilateral = new Bilateral(postLead, ((Trailing) alignment).getTrailing(), ((Trailing) alignment).getSize());
constraints = new Constraints(constraints.getHorizontal(), bilateral);