Java code for the TAIR Query Builder web application