for (int i = 0; i < groups.length; i++) { buf.append( "<group>" ); buf.append( groups[i] ); buf.append( "</group>" );
if (groups != null) { for (int i = 0; i < groups.length; i++) { buf.append( "<group>" ); buf.append( groups[i] ); buf.append( "</group>" ); }
    public final String toString() {        StringBuffer buf = new StringBuffer();        buf.append( "<user name=\"" );        buf.append( user );        buf.append( "\" " );        buf.append( "uid=\"");        buf.append( Integer.toString(uid) );        buf.append( "\"" );        if ( password != null ) {            buf.append( " password=\"{MD5}" );            buf.append( password );            buf.append( '"' );        }        if (digestPassword!=null) {            buf.append( " digest-password=\"" );            buf.append( digestPassword );            buf.append( '"' );        }		if( home != null ) {			buf.append(" home=\"" );			buf.append(home);			buf.append("\">");		} else			buf.append(">");        for (int i = 0; i < groups.length; i++) {            buf.append( "<group>" );            buf.append( groups[i] );            buf.append( "</group>" );        }        buf.append( "</user>" );        return buf.toString();    }