class BlueprintToBlueprintV4ResponseConverter extends AbstractConversionServiceAwareConverter<Blueprint, BlueprintV4Response> {

    @Override
    public BlueprintV4Response convert(Blueprint entity) {
        BlueprintV4Response blueprintJson = new BlueprintV4Response();
        blueprintJson.setName(entity.getName());
        blueprintJson.setDescription(entity.getDescription() == null ? "" : entity.getDescription());
        blueprintJson.setHostGroupCount(entity.getHostGroupCount());
        blueprintJson.setStatus(entity.getStatus());
        blueprintJson.setTags(entity.getTags().getMap());
        blueprintJson.setBlueprint(entity.getBlueprintText());
        blueprintJson.setCrn(entity.getResourceCrn());
        blueprintJson.setCreated(entity.getCreated());
        return blueprintJson;
    }

}