Set<Blueprint> blueprints = new HashSet<>();
for (String blueprintName : blueprintArray) {
MDCBuilder.buildMdcContext();
LOGGER.info("Adding default blueprint '{}' for user '{}'", blueprintName, user.getUsername());
try {
BlueprintJson blueprintJson = new BlueprintJson();
blueprintJson.setBlueprintName(blueprintName);
blueprintJson.setName(blueprintName);
blueprintJson.setDescription(blueprintName);
blueprintJson.setAmbariBlueprint(
jsonHelper.createJsonFromString(FileReaderUtils.readFileFromClasspath(String.format("blueprints/%s.bp", blueprintName))));
Blueprint bp = blueprintConverter.convert(blueprintJson);
MDCBuilder.buildMdcContext(bp);
bp.setOwner(user.getUserId());