switch (ex.getFaultInfo().getType()) {
case CONSTRAINT:
return new CmisConstraintException(msg, code, errorContent);
case CONTENT_ALREADY_EXISTS:
return new CmisContentAlreadyExistsException(msg, code, errorContent);
case FILTER_NOT_VALID:
return new CmisFilterNotValidException(msg, code, errorContent);
case INVALID_ARGUMENT:
return new CmisInvalidArgumentException(msg, code, errorContent);
case NAME_CONSTRAINT_VIOLATION: