class QueryResourceRecipe extends CatalogQuery {

    @Override
    public String JSON2(boolean isArray, boolean isEmbed) {
        Map<String, String> valueMap = new HashMap<>();
        valueMap.put("id", null == resourceRecipe || null == resourceRecipe.getId() ? StringUtils.EMPTY
                : String.valueOf(resourceRecipe.getId()));
        valueMap.put("action", null == resourceRecipe || null == resourceRecipe.getAction() ? StringUtils.EMPTY
                : resourceRecipe.getAction());
        valueMap.put("orchestrationUri",
                null == resourceRecipe || null == resourceRecipe.getOrchestrationUri() ? StringUtils.EMPTY
                        : resourceRecipe.getOrchestrationUri());
        valueMap.put("recipeTimeout",
                null == resourceRecipe || null == resourceRecipe.getRecipeTimeout() ? StringUtils.EMPTY
                        : String.valueOf(resourceRecipe.getRecipeTimeout()));
        valueMap.put("paramXSD", null == resourceRecipe || null == resourceRecipe.getParamXsd() ? StringUtils.EMPTY
                : resourceRecipe.getParamXsd());
        valueMap.put("description",
                null == resourceRecipe || null == resourceRecipe.getDescription() ? StringUtils.EMPTY
                        : resourceRecipe.getDescription());
        ObjectMapper mapper = new ObjectMapper();
        mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, false);
        String jsonStr = "";
        try {
            jsonStr = mapper.writeValueAsString(valueMap);
        } catch (JsonProcessingException e) {
            logger.error("Error creating JSON", e);
        }
        return jsonStr;
    }

    public  QueryResourceRecipe(Recipe resourceRecipe);

}