private EndpointType resolveEndpointType(IBindingSet bs){
  String endpointTypeStr=resolveAsString(endpointType,bs);
  if (endpointTypeStr == null) {
    endpointTypeStr=defaults.getDefaultEndpointType();
  }
  if (endpointTypeStr != null && !endpointTypeStr.isEmpty()) {
    try {
      return EndpointType.valueOf(endpointTypeStr);
    }
 catch (    Exception e) {
      if (log.isDebugEnabled()) {
        log.warn("Illegal endpoint type: " + endpointTypeStr + " -> will be ignored, using default.");
      }
    }
  }
  return FTS.Options.DEFAULT_ENDPOINT_TYPE;
}

private EndpointType resolveEndpointType ( IBindingSet bs ) { String endpointTypeStr = resolveAsString ( endpointType , bs ) ; if ( endpointTypeStr == null ) { endpointTypeStr = defaults . getDefaultEndpointType ( ) ; } if ( endpointTypeStr != null && ! endpointTypeStr . isEmpty ( ) ) { try { return EndpointType . valueOf ( endpointTypeStr ) ; } catch ( Exception e ) { if ( log . isDebugEnabled ( ) ) { log . warn ( "Illegal endpoint type: " + endpointTypeStr + " -> will be ignored, using default." ) ; } } } return FTS . Options . DEFAULT_ENDPOINT_TYPE ; }
resolves the endpoint type , which is either a constant or a variable to be looked up in the binding set .
