Dependency Injection

….
@EJB OrangeJuiceManagerLocal ojml;
@EJB WaterManagerLocal wml;
….

private OrangeJuice getSomeOrangeJuice(){

List oranges = ojml.finAllOranges();
Water water = wml.findColdWater();

return mixOrangeToWater(oranges,water);
}

….

😉