return converter.unboxValue(ret);
}
private void addVersionIfNeeded(MetadataAwareCommand cmd) {
Metadata metadata = cmd.getMetadata();
if (metadata.version() == null) {
Metadata newMetadata = metadata.builder()
.version(versionGenerator.generateNew())
.build();
cmd.setMetadata(newMetadata);
}