public static InvalidContractStatusException invalidContractStatus(ContractStatus expected, ContractStatus actual) {
        return new InvalidContractStatusException(Messages.i18n.format("ContractWrongState", expected, actual)); //$NON-NLS-1$
    }
Creates an exception from an contract id.
@param contractId the contract id
@return the exception
manager/api/exceptions/src/main/java/io/apiman/manager/api/rest/exceptions/util/ExceptionFactory.java