private void handleHtmlSearchAccounts(PageWrapper pageWrapper,RequestAndResponse requestAndResponse,String query,String paneId) throws IOException, ServletException {
  pageWrapper.addPageIntroText(servletText.introTextSearchUsers(),null);
  if (!isUserAnAdmin(requestAndResponse)) {
    requestAndResponse.print(servletText.errorPageNotAllowed());
  }
 else {
    try {
      final StringBuilder result=new StringBuilder();
      final User user=dbLogic.getUserByUserName(query.toLowerCase());
      if (user == null) {
        result.append(servletText.sentenceThereWereNoMatches());
      }
 else {
        startItemList(result,paneId);
        addUserHtml(user,result,1,paneId);
        finishItemList(result);
      }
      dbLogic.commit();
      requestAndResponse.print(result.toString());
    }
 catch (    final PersistenceException e) {
      requestAndResponse.print(servletText.errorInternalDatabase());
    }
  }
}

private void handleHtmlSearchAccounts ( PageWrapper pageWrapper , RequestAndResponse requestAndResponse , String query , String paneId ) throws IOException , ServletException { pageWrapper . addPageIntroText ( servletText . introTextSearchUsers ( ) , null ) ; if ( ! isUserAnAdmin ( requestAndResponse ) ) { requestAndResponse . print ( servletText . errorPageNotAllowed ( ) ) ; } else { try { final StringBuilder result = new StringBuilder ( ) ; final User user = dbLogic . getUserByUserName ( query . toLowerCase ( ) ) ; if ( user == null ) { result . append ( servletText . sentenceThereWereNoMatches ( ) ) ; } else { startItemList ( result , paneId ) ; addUserHtml ( user , result , 1 , paneId ) ; finishItemList ( result ) ; } dbLogic . commit ( ) ; requestAndResponse . print ( result . toString ( ) ) ; } catch ( final PersistenceException e ) { requestAndResponse . print ( servletText . errorInternalDatabase ( ) ) ; } } }
part of the html api . shows search results within users .
