Switch getNextStatementName() and getNextPortalName() to use Long.toHexString().