private String getBindingKey(final BaseMethodBinding<?> theBinding) {
		if (theBinding instanceof OperationMethodBinding) {
		    return ((OperationMethodBinding) theBinding).getName();
		} else if (theBinding instanceof SearchMethodBinding) {
		    Search search = theBinding.getMethod().getAnnotation(Search.class);
		    return search.compartmentName();
		} else {
			return DEFAULT_METHOD_KEY;
		}
	}
private String getBindingKey ( final BaseMethodBinding < ? > theBinding ) { if ( theBinding instanceof OperationMethodBinding ) { return ( ( OperationMethodBinding ) theBinding ) . getName ( ) ; } else if ( theBinding instanceof SearchMethodBinding ) { Search search = theBinding . getMethod ( ) . getAnnotation ( Search . class ) ; return search . compartmentName ( ) ; } else { return DEFAULT_METHOD_KEY ; } }
Get the key for the baseMethodBinding. This is:
<ul>
<li>the compartName for SearchMethodBindings
<li>the methodName for OperationMethodBindings
<li> {@link #DEFAULT_METHOD_KEY} for all other MethodBindings
</ul>
@param theBinding the methodbinding
@return the key for the methodbinding.