deviceName);
PolicySet standardPolicySet =
(PolicySet) loadZipObject(standardDeviceFileName, PolicySet.class);
if (standardPolicySet == null) {
// No standard device. This is bad since this is mandatory.
throw new RepositoryException(EXCEPTION_LOCALIZER.format(
"device-definition-missing", deviceName));
}
addPolicySetToDevice(standardPolicySet, device);
// Then add any custom policies to the device.