private void init(boolean initConnection) {
if (initConnection) {
//MockConnection2 mockCon = getMockConnection();
con = new SQLConnection(getMockConnection(), null, sqlDriver);
}
id = new UidIdentifier();
messageHandler = new MockMessageHandler();
props = new SessionProperties();
props.setLoadSchemasCatalogs(false);
app = new MockApplication();
app.getMockSessionManager().setSession(this);
sqlAlias = new SQLAlias(new UidIdentifier());
schemaInfo = new SchemaInfo(app);
schemaInfo.initialLoad(this);
prefs = app.getSquirrelPreferences();
try {
UIFactory.initialize(prefs, app);