private String resolveEndpoint(IBindingSet bs){
  String endpointStr=resolveAsString(endpoint,bs);
  if (endpointStr == null || endpointStr.isEmpty()) {
    endpointStr=defaults.getDefaultEndpoint();
  }
  if (endpointStr != null && !endpointStr.isEmpty()) {
    return endpointStr;
  }
 else {
    throw new FulltextSearchException(FulltextSearchException.NO_ENDPOINT_SPECIFIED);
  }
}

private String resolveEndpoint ( IBindingSet bs ) { String endpointStr = resolveAsString ( endpoint , bs ) ; if ( endpointStr == null || endpointStr . isEmpty ( ) ) { endpointStr = defaults . getDefaultEndpoint ( ) ; } if ( endpointStr != null && ! endpointStr . isEmpty ( ) ) { return endpointStr ; } else { throw new FulltextSearchException ( FulltextSearchException . NO_ENDPOINT_SPECIFIED ) ; } }
resolves the endpoint , which is either a constant or a variable to be looked up in the binding set .
