byte[] displayBuffer = ((ByteArrayOutputStream) getLogger()) .toByteArray(); setLogger(new ByteArrayOutputStream());
byte[] displayBuffer = ((ByteArrayOutputStream)getLogger()).toByteArray();
    private Map getFBUsers() throws SQLException, IOException {                User user = null;        Map users = new TreeMap();        byte[] displayBuffer = ((ByteArrayOutputStream) getLogger())                .toByteArray();        setLogger(new ByteArrayOutputStream());        count = 0;        while (count < (displayBuffer.length)                && displayBuffer[count] != ISCConstants.isc_info_end) {            switch (displayBuffer[count]) {            case ISCConstants.isc_spb_sec_username:                if (user != null) {                    users.put(user.getUserName(), user);                }                user = new FBUser();                user.setUserName(getSRBString(displayBuffer));                break;            case ISCConstants.isc_spb_sec_firstname:                user.setFirstName(getSRBString(displayBuffer));                break;            case ISCConstants.isc_spb_sec_middlename:                user.setMiddleName(getSRBString(displayBuffer));                break;            case ISCConstants.isc_spb_sec_lastname:                user.setLastName(getSRBString(displayBuffer));                break;            case ISCConstants.isc_spb_sec_userid:                user.setUserId(getSRBInteger(displayBuffer));                break;            case ISCConstants.isc_spb_sec_groupid:                user.setGroupId(getSRBInteger(displayBuffer));                break;            default:                count++;                break;            }        }        users.put(user.getUserName(), user);        return users;            }