.withEnabled(reference.context().isEnabled())
.withTypeId(reference.context().type().toString());
if (reference.context().properties() != null) {
for (final Map.Entry<String, String> entry : reference.context().properties().entrySet()) {
capability.getProperties().add(new PropertyXO().withKey(entry.getKey()).withValue(entry.getValue()));
}
}
return capability;
}