@SuppressWarnings("unchecked")
protected ILaunchConfigurationWorkingCopy createLaunch() throws Exception {
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType launchConfigType = launchManager.getLaunchConfigurationType("org.eclipse.jdt.launching.localJavaApplication");
ILaunchConfigurationWorkingCopy wc = launchConfigType.newInstance(null, "Test1");
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "JMX_EXAMPLE");
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "com.example.Main");
wc.setAttribute("org.eclipse.debug.core.MAPPED_RESOURCE_PATHS",
new ArrayList(Arrays.asList(new String[] {