package org.requirementsascode.exception;

/**
 * Exception that is thrown when somebody tries to create a new model element,
 * and a model element with the same name is already in the model.
 * 
 * @author b_muth
 *
 */
public class ElementAlreadyInModel extends RuntimeException {
	private static final long serialVersionUID = -510216736346192818L;

	public ElementAlreadyInModel(String elementName) {		
		super(exceptionMessage(elementName));
	}

	private static String exceptionMessage(String elementName) {
		return "Element already exists in model: " + elementName;
	}
}

@@ -36,16 +36,46 @@
 ption;%0A%0A
+import java.io.Serializable;%0A%0A
 /**%0A * E
@@ -305,16 +305,39 @@
 ception 
+implements Serializable
 %7B%0A%09priva

Make ElementAlreadyInModel class Serializable