if (CmisContentAlreadyExistsException.EXCEPTION_NAME.equals(exception)) {
return new CmisContentAlreadyExistsException(message, errorContent, t);
} else if (CmisVersioningException.EXCEPTION_NAME.equals(exception)) {
return new CmisVersioningException(message, errorContent, t);
} else if (CmisUpdateConflictException.EXCEPTION_NAME.equals(exception)) {
return new CmisUpdateConflictException(message, errorContent, t);
} else if (CmisNameConstraintViolationException.EXCEPTION_NAME.equals(exception)) {
return new CmisNameConstraintViolationException(message, errorContent, t);
}
return new CmisConstraintException(message, errorContent, t);
default: