public void loadLatestEntriesInCategory(){
  loadCategories();
  if (categories.contains(category)) {
    entriesForPage=(searchString != null ? retrieveSearchResultsInCategory() : retrieveLatestEntriesInCategory());
  }
 else {
    category=null;
  }
}

public void loadLatestEntriesInCategory ( ) { loadCategories ( ) ; if ( categories . contains ( category ) ) { entriesForPage = ( searchString != null ? retrieveSearchResultsInCategory ( ) : retrieveLatestEntriesInCategory ( ) ) ; } else { category = null ; } }
init method for a category page
