Buggy code:
public class ScarabRequestTool extends RecyclableSupport implements ScarabRequestScope { private RunData data ; private ScarabUser user = null ; private Issue issue = null ; private Attribute attribute = null ; private Attachment attachment = null ; private Depend depend = null ; private Query query = null ; private IssueTemplateInfo templateInfo = null ; private IssueType issueType = null ; private AttributeGroup group = null ; private ModuleEntity currentModule = null ; private IssueType currentIssueType = null ; private Issue reportingIssue = null ; private String currentQuery = null ; private ModuleEntity module = null ; private AttributeOption attributeOption = null ; private ROptionOption roo = null ; private ParentChildAttributeOption pcao = null ; private List issueList ; private Report reportGenerator = null ; private int nbrPages = 0 ; private int prevPage = 0 ; private int nextPage = 0 ; public void init ( Object data ) { } public void refresh ( ) { } public ScarabRequestTool ( ) { } public void setAttribute ( Attribute attribute ) { } public void setDepend ( Depend depend ) { } public void setQuery ( Query query ) { } private IntakeTool getIntakeTool ( ) { } public ROptionOption getROptionOption ( ) { } public void setROptionOption ( ROptionOption roo ) { } public void setIssueTemplateInfo ( IssueTemplateInfo templateInfo ) { } public void setIssueType ( IssueType issuetype ) { } public ParentChildAttributeOption getParentChildAttributeOption ( ) { } public void setParentChildAttributeOption ( ParentChildAttributeOption roo ) { } public void setAttributeOption ( AttributeOption option ) { } public AttributeOption getAttributeOption ( ) throws Exception { } public void setUser ( ScarabUser user ) { } public ScarabUser getUser ( ) { } public ScarabUser getUser ( Object id ) throws Exception { } public Attribute getAttribute ( ) throws Exception { } public Query getQuery ( ) throws Exception { } public IssueTemplateInfo getIssueTemplateInfo ( ) throws Exception { } public Depend getDepend ( ) throws Exception { } public Attachment getAttachment ( ) throws Exception { } public AttributeGroup getAttributeGroup ( ) { } public AttributeGroup getAttributeGroup ( String key ) { } public IssueType getIssueType ( String key ) { } public IssueType getIssueType ( ) throws Exception { } public RModuleAttribute getRModuleAttribute ( ) throws Exception { } public void setAttributeGroup ( AttributeGroup group ) { } public void setModule ( ModuleEntity module ) { } public ModuleEntity getModule ( ) throws Exception { } public ModuleEntity getModule ( String key ) { } public ModuleEntity getCurrentModule ( ) { } public IssueType getCurrentIssueType ( ) throws Exception { } public Issue getReportingIssue ( ) throws Exception { } private void getNewReportingIssue ( ) throws Exception { } public void setReportingIssue ( Issue issue ) { } public void setCurrentModule ( ModuleEntity me ) { } public void setCurrentIssueType ( IssueType issueType ) { } public void setIssue ( Issue issue ) { } public Issue getIssue ( ) throws Exception { } public Issue getIssue ( String key ) { } public List getIssues ( ) throws Exception { } public List getScopes ( ) throws Exception { } public List getFrequencies ( ) throws Exception { } public IssueSearch getSearch ( ) throws Exception { } public Intake parseQuery ( String query ) throws Exception { } public List getCurrentSearchResults ( ) throws Exception { ScarabUser user = ( ( ScarabUser ) ( data . getUser ( ) ) ) ; Intake intake = new Intake ( ) ; if ( ( user . getTemp ( CURRENT_QUERY ) ) == null ) { Query query = user . getDefaultQuery ( getCurrentModule ( ) , getCurrentIssueType ( ) ) ; String defaultQuery = null ; if ( query == null ) { defaultQuery = user . getDefaultDefaultQuery ( ) ; } else { defaultQuery = query . getValue ( ) ; } intake = parseQuery ( defaultQuery ) ; } else { String currentQuery = user . getTemp ( CURRENT_QUERY ) . toString ( ) ; <START_BUG> System . out . println ( currentQuery ) ; <END_BUG> intake = parseQuery ( currentQuery ) ; } IssueSearch search = getSearch ( ) ; Group searchGroup = intake . get ( "SearchIssue" , getSearch ( ) . getQueryKey ( ) ) ; searchGroup . setProperties ( search ) ; SequencedHashtable avMap = search . getModuleAttributeValuesMap ( ) ; Iterator i = avMap . iterator ( ) ; while ( i . hasNext ( ) ) { AttributeValue aval = ( ( AttributeValue ) ( avMap . get ( i . next ( ) ) ) ) ; Group group = intake . get ( "AttributeValue" , aval . getQueryKey ( ) ) ; if ( group != null ) { group . setProperties ( aval ) ; } } return search . getMatchingIssues ( ) ; } public String convertPath ( String path ) throws Exception { } public Report getReport ( ) throws Exception { } public void setReport ( Report report ) { } private static String getReportQueryString ( ValueParser params ) { } public List getPaginatedList ( List fullList , int pgNbr , int nbrItemsPerPage ) { } public List getIssueList ( ) throws Exception { } public void setIssueList ( List v ) { } public int getNbrPages ( ) { } public int getNextPage ( ) { } public int getPrevPage ( ) { } public boolean hasPermission ( String permission ) { } public boolean hasPermission ( String permission , ModuleEntity module ) { } public void dispose ( ) { } }

Fix:
Log . debug ( currentQuery ) ;