Well, as I see it from my quick once-over of the pages you linked, AS400JDBCDriver has a getSystem() method which returns an AS400 object. So I think
you should use that one rather than creating a new one which has nothing to do with the
JDBC driver object at all.
If you were wondering how to get an AS400JDBCDriver object, I would recommend casting the Connection object you get in that code to AS400JDBCDriver.