public TemplateCallable [ ] addDefaults ( TemplateCallable [ ] userCallables ) { TemplateCallable strFunctionality = new TemplateCallable ( String . class . getSimpleName ( ) , String . class ) ; for ( TemplateCallable u : userCallables ) { if ( u . equals ( strFunctionality ) ) { return userCallables ; } } return GeneralUtils . concat ( userCallables , new TemplateCallable [ ] { strFunctionality } ) ; }
Enables the static methods of the java . lang . String class to be called from the templates . If the key String is already reserved by the user this method simply returns the input parameter .