public void addQuery(boolean and,ContentletQuery contentletQuery){
  if (and) {
    query.append(" " + contentletQuery.getQuery());
  }
 else {
    query.insert(0,"(");
    query.append(") (");
    query.append(contentletQuery.getQuery());
    query.append(")");
  }
}

public void addQuery ( boolean and , ContentletQuery contentletQuery ) { if ( and ) { query . append ( " " + contentletQuery . getQuery ( ) ) ; } else { query . insert ( 0 , "(" ) ; query . append ( ") (" ) ; query . append ( contentletQuery . getQuery ( ) ) ; query . append ( ")" ) ; } }
combines two contentletquery objects into one query .
