class CamundaMacroRequestSerializer {

    public static String getJsonRequest(String requestId, String action, String serviceInstanceId)
            throws JsonProcessingException {
        CamundaMacroRequest macroRequest = new CamundaMacroRequest();
        macroRequest.setAction(getCamundaInput(action));
        macroRequest.setRequestId(getCamundaInput(requestId));
        macroRequest.setServiceInstanceId(getCamundaInput(serviceInstanceId));
        ObjectMapper mapper = new ObjectMapper();
        mapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);
        return mapper.writeValueAsString(macroRequest);
    }

    private  CamundaMacroRequestSerializer();

}