anchor.diff:  [source,java]
   ----------------------------------------------------------------------
   public class CustomGroovyShellFactory implements GroovyShellFactory {
  - 
  +
     public GroovyShell createGroovyShell(Exchange exchange) {
       ImportCustomizer importCustomizer = new ImportCustomizer();
       importCustomizer.addStaticStars("com.example.Utils");
  
positive.code: [source,text]
  -------------------------------------------------------------
  bar = "baz";
  # some other statements ... 
  # camel take the result value as the script evaluation result
  result = body * 2 + 1
  -------------------------------------------------------------
  
negative.code: 
  ...Camel will use your custom GroovyShell instance (containing your
  custom static imports), instead of the default one.
  
  === Customizing Groovy class file name
  
  You may rarely in need of customizing generated Groovy class file name for debugging purposes.
  This is also possible by implementing `getFileName` method.
  
  [source,java]
  ----------------------------------------------------------------------
  public class CustomGroovyShellFactory implements GroovyShellFactory {
  
    public GroovyShell createGroovyShell(Exchange exchange) {
      return new GroovyShell();
    }
  
    public String getFileName(Exchange exchange) {
      return "Foo.groovy";
    }
  
  }
  ----------------------------------------------------------------------
  
  == Example
  
  