Like Thomas, my understanding is that it's only possible from an agent. But that will have performance issues and you'll still have to handle errors/responses.
As mentioned on The XCast, the GBS Transformer tool has been built with a LotusScript engine, to convert to Java at run-time. But I'm not sure what happens when the code calls UI functions.
When approaching these kinds of apps, if the SLs include functions I'm tempted to convert to SSJS or, better still, Java. If it's all back-end processing, it should not be too challenging. Having said that, some functions may be superfluous because we can combine @Formulas, javascript code and even Java inside SSJS. For custom classes I'd be tempted to use Java (even though my knowledge of Java is limited at best) simply because performance is optimal in Java, handling of errors or outcomes is easier, and the experience gained will have supplementary uses. The main challenge is ensuring it is supportable by other developers in my absence.