public void calcAutoCompleteSettings ( String field , Map < String , Object > attributes ) { String capitalizedFieldName = StringUtils . capitalize ( field ) ; String methodName = "doAutoComplete" + capitalizedFieldName ; Method method = ReflectionUtils . getPublicMethodNamed ( getClass ( ) , methodName ) ; if ( method == null ) return ; // no auto-completion attributes . put ( "autoCompleteUrl" , String . format ( "%s/%s/autoComplete%s" , getCurrentDescriptorByNameUrl ( ) , getDescriptorUrl ( ) , capitalizedFieldName ) ) ; }
Computes the auto - completion setting