@Override
protected EntityAndPendingNotifications<BE, MetricType>
wireUpNewEntity(BE entity, MetricType.Blueprint blueprint, CanonicalPath parentPath, BE parent,
Transaction<BE> tx) {
tx.update(entity, MetricType.Update.builder().withUnit(blueprint.getUnit()).build());
MetricType metricType = new MetricType(blueprint.getName(),
parentPath.extend(MetricType.SEGMENT_TYPE, tx.extractId(entity)).get(), null, null, null,
blueprint.getUnit(), blueprint.getMetricDataType(), blueprint.getProperties(),
blueprint.getCollectionInterval());
return new EntityAndPendingNotifications<>(entity, metricType, emptyList());
}