@Override public void doGet(BaseSolrResource endpoint,String childId){
  SolrQueryResponse response=endpoint.getSolrResponse();
  if (childId != null) {
    String key=getIgnoreCase() ? childId.toLowerCase(Locale.ROOT) : childId;
    if (!managedWords.contains(key))     throw new SolrException(ErrorCode.NOT_FOUND,String.format(Locale.ROOT,"%s not found in %s",childId,getResourceId()));
    response.add(childId,key);
  }
 else {
    response.add(WORD_SET_JSON_FIELD,buildMapToStore(managedWords));
  }
}

@ Override public void doGet ( BaseSolrResource endpoint , String childId ) { SolrQueryResponse response = endpoint . getSolrResponse ( ) ; if ( childId != null ) { String key = getIgnoreCase ( ) ? childId . toLowerCase ( Locale . ROOT ) : childId ; if ( ! managedWords . contains ( key ) ) throw new SolrException ( ErrorCode . NOT_FOUND , String . format ( Locale . ROOT , "%s not found in %s" , childId , getResourceId ( ) ) ) ; response . add ( childId , key ) ; } else { response . add ( WORD_SET_JSON_FIELD , buildMapToStore ( managedWords ) ) ; } }
implements the get request to provide the list of words to the client . alternatively , if a specific word is requested , then it is returned or a 404 is raised , indicating that the requested word does not exist .
