class JSONRest {

    public String executeCmds(String containerId, Object insertObject){
        RuleServicesClient ruleServicesClient = kieServicesClient.getServicesClient(RuleServicesClient.class);
        KieCommands commands = KieServices.Factory.get().getCommands();

        Command<?> insertCmd    = commands.newInsert(insertObject);
        Command<?> fireAllRules = commands.newFireAllRules();
        Command<?> batchCmds    = commands.newBatchExecution(Arrays.asList(insertCmd, fireAllRules));

        ServiceResponse<String> response = ruleServicesClient.executeCommands(containerId, batchCmds);

        if(response.getType() == ServiceResponse.ResponseType.SUCCESS){
            return response.getResult();
        }

        return response.getMsg();
    }

    public  JSONRest(KieServerCfg serverCfg);

}