@@ -0,0 +1,407 @@
+package uk.ac.lancs.e_science.profile2.api.exception;%0A%0Apublic class ProfileMismatchException extends RuntimeException %7B%0A%09%09%0A%09private static final long serialVersionUID = 1L;%0A%09private final transient String message;%0A%09%0A%09public ProfileMismatchException(final String message)%7B%0A%09%09this.message = message;%0A%09%7D%0A%0A%09public String toString() %7B%0A%09%09return ProfilePrototypeNotDefinedException.class + %22: %22 +  message;%0A%09%7D%0A%7D%0A%0A%0A

add new exception class to be thrown when data doesn't match up properly, basically for security checks.