Interpreter
in your Java application and load and run bagel code within that interpreter. You can easily and seamlessly call
Java from bagel and bagel from Java. Generally speaking I find it more natural to express the high-level business logic for my application
in bagel and use Java for the low-level general-purpose functions.