PrintWriter log = ((FBManagedConnection)ce.getSource()).getLogWriter();
PrintWriter externalLog = ((FBManagedConnection)ce.getSource()).getLogWriter(); log.info("ConnectionErrorOccurred, ", ce.getException());
    public void connectionErrorOccurred(ConnectionEvent ce) {        PrintWriter log = ((FBManagedConnection)ce.getSource()).getLogWriter();        try {            ((FBManagedConnection)ce.getSource()).destroy();        }        catch (ResourceException e) {            if (log != null) log.println("Exception closing unmanaged connection: " + e);        }    }