more work on XDI3Util and StatementUtil