everything goes well if i use the command line or interactive mode , i create the stream , i grant the send permission , i subscribe to it , i publish item to stream , when i use the command line or interactive mode the items returned successfully ....but when i use below  java command to retrive the items via postman ....only null values returns ..... for example . i published 2 items , it will return "null,null" ,  i publish 3 items , it returns "null,null,null" ,   i tested this both on root stream and my own stream , the same output
    List<StreamKeyItem> items = new ArrayList<>();
    try {
        items = (List<StreamKeyItem>) cm.invoke(CommandElt.LISTSTREAMITEMS, streamidentifier, true, 10, 0);
    } catch (MultichainException e) {
        e.printStackTrace();
        //should return meaningful message to the front-end
        return GSonUtil.getInstance().object2Json(new MultichainOperationResult(e.getMessage(), false));
    }
    return GSonUtil.getInstance().object2Json(items);
}