Multiple Descriptors for an Application

I want to launch an application programatically, though ApplicationManager.runApplication(descriptor) works fine there are some cases where an application has multiple modules and there are multiple descriptors for a module. Is there any way to find which one is the entry point and pass that particular descriptor to the runApplication API !?