private void LogResults(List<String> listElements) {
        String callingMethod = Thread.currentThread().getStackTrace()[3].getMethodName();
        StringBuilder sb = new StringBuilder();
        int count = 0;
        for (String element : listElements)
        {
            if (count > 20)
            {
                Log.debug(callingMethod + " results: " + sb.toString());
                sb.delete(0, sb.length());
                count = 0;
            }
            sb.append(element).append(',');
            count++;
        }
        sb.append('.');
        Log.debug(callingMethod + " results: " + sb.toString());
    }
Make sure that Log.isDebugEnabled()==true before calling this method.
Twenty elements will be logged in every log line, so for 81-100 elements
five log lines will be generated
@param listElements a list of Strings which will be logged
xmppserver/src/main/java/org/jivesoftware/openfire/user/JDBCUserProvider.java