final CapabilityDescriptor descriptor = capabilityDescriptorRegistry.get(type);
final Map<String, String> encryptedProps = encryptValuesIfNeeded(descriptor, props);
final CapabilityIdentity generatedId = capabilityStorage.add(new CapabilityStorageItem(
descriptor.version(), type.toString(), enabled, notes, encryptedProps
));
log.debug("Added capability '{}' of type '{}' with properties '{}'", generatedId, type, encryptedProps);
final DefaultCapabilityReference reference = create(generatedId, type, descriptor);