// has been initialised (do this before a default version is supplied
// if it's null). This must be done even if the device is null to
// ensure that everything is initialised (even if empty).
DeviceCapabilityManagerBuilder builder =
new DeviceCapabilityManagerBuilder(device);
config.initialize(device, builder);
// If we did not try and set the CSS or we did but no CSS was found,
// then we will have a null CSS version. This should only ever happen
// in testing, but means that all the subsequent code must check for
// null, which is very tedious. Instead we sub in a testing CSS version