class SpringContextFunctionLoader implements FunctionLoader, ApplicationContextAware {

  private ApplicationContext applicationContext;


  public SpringContextFunctionLoader() {
    super();
  }


  public SpringContextFunctionLoader(final ApplicationContext applicationContext) {
    super();
    this.applicationContext = applicationContext;
  }


  public ApplicationContext getApplicationContext() {
    return this.applicationContext;
  }


  @Override
  public void setApplicationContext(final ApplicationContext applicationContext) {
    this.applicationContext = applicationContext;
  }


  @Override
  public AviatorFunction onFunctionNotFound(final String name) {<FILL_FUNCTION_BODY>}

}

    try {
      return (AviatorFunction) this.applicationContext.getBean(name);
    } catch (NoSuchBeanDefinitionException e) {
      return null;
    }
  
<no_super_class>