Launch the default android emulator using the avd capability

Hi,
Is there a way to launch the default android emulator using the avd capability,

You can launch a particular AVD.

Ex: If you have an AVD named MyNexus1, you can launch it by using avd capability as follows:
capabilities.SetCapability(“avd”,“MyNexus1”);

Hi

Is there any way to launch emulator programatically in Java.

Please share the code if already exist.

Thanks,
Pradeep