I may sound idiotic and I guess I am asking an incorrect design question but just wanted to know your view point.

I want to start jetty container from one of my CloudFoundry app, Is it possible to do so , I guess the answer is no as it will be case of container inside other container, Please help.

Whats the real question:

I am trying to stub some of the other rest api that i will call from one of my cloud foundry app and for that I am using [Stubby4J](https://stubby4j.com) which is a good REST mockign system that starts jetty container.
Jetty its not starting from inside my cloud foundry app as it requires a port etc.

I guess I need to change my approach and run my stubby4j application as a separate application ( as a core java app in cloud foundry ) that can be invoked from any cloudfoundry app

Please suggest.