What's the point of using the ?: operator here? Use the Preconditions to validate arguments. Have a look at BuildParametersContext for examples.