Is there any way to write a testscript that can handle two Java VM's running simultaneously each with it's own JavaMainWin?

I have an install program, written with InstallShield that installs an application which I am trying to write a testscript for. The install program midway through launches a second JVM to bring up a second JavaMainWin. (The original JavaMainWin is still running in it's own JVM.)

All is running well until when the second JavaMainWin is generated and appears to be the active window on the desktop, I call setActive on that window but it always sets the first JavaMainWin active and then the testscipt basically just hangs.

Here are the window declarations:
[-] window JavaMainWin InstallMCS
[ ] tag "InstallMCS"
[+] ComInstallshieldWizardAwtImagePanel Panel2
[ ] tag "$panel2"
[+] JavaAwtPanel Panel43
[ ] tag "$panel43"
[+] ComInstallshieldWizardAwtFlowLabel Canvas11
[+] multitag "Installing Attachmate Management Control Services"
[ ] "$canvas11"
[+] JavaAwtPanel Panel46
[ ] tag "$panel46"

[-] window JavaMainWin ControlPassword
[ ] tag "ControlPassword"
[+] ComInstallshieldWizardAwtImagePanel Panel2
[ ] tag "$panel2"
[+] ComInstallshieldWizardAwtFlowLabel PleaseEnterAndConfirmAPas
[+] multitag "Please enter and confirm a Password for access to the server through the 'system' account."
[ ] "$canvas0"
[+] JavaAwtStaticText PasswordText
[ ] tag "Password:"
[+] JavaAwtStaticText ConfirmPasswordText
[ ] tag "Confirm Password:"
[+] JavaAwtTextField Password
[ ] tag "Password:"
[+] JavaAwtTextField ConfirmPassword1
[ ] tag "Confirm Password:"
[+] ComInstallshieldWizardAwtFlowLabel Canvas1
[ ] tag "$canvas1"
[+] ComInstallshieldWizardAwtISBranding ConfirmPassword2
[+] multitag "Confirm Password:"
[ ] "$canvas2"
[+] JavaAwtPushButton Next
[ ] tag "Next >"
[+] JavaAwtPushButton Cancel
[ ] tag "Cancel"



------------------