private void outputProjects(Properties ctx,PrintWriter out,int projectID,boolean includeAny){
  out.println("<projects>");
  if (includeAny) {
    out.println("<project id='-1'");
    if (projectID == 0)     out.println(" selected='selected'");
    out.println(">ANY</project>");
  }
  out.println("<project id='1'>Landscaping New Office</project>");
  out.println("</projects>");
}

private void outputProjects ( Properties ctx , PrintWriter out , int projectID , boolean includeAny ) { out . println ( "<projects>" ) ; if ( includeAny ) { out . println ( "<project id='-1'" ) ; if ( projectID == 0 ) out . println ( " selected='selected'" ) ; out . println ( ">ANY</project>" ) ; } out . println ( "<project id='1'>Landscaping New Office</project>" ) ; out . println ( "</projects>" ) ; }
output xml list of projects
