@Override
 public void setDefaults(IProgressMonitor monitor) {
   super.setDefaults(monitor);
   try {
     getEquinoxConfiguration();
   } catch (CoreException e) {
     Trace.trace(Trace.SEVERE, "Can't setup for Equinox configuration.", e);
   }
 }
  @Override
  public void importRuntimeConfiguration(IRuntime runtime, IProgressMonitor monitor)
      throws CoreException {

    super.importRuntimeConfiguration(runtime, monitor);
    OSGIFrameworkInstanceBehaviorDelegate fsb =
        (OSGIFrameworkInstanceBehaviorDelegate)
            getServer().loadAdapter(EquinoxFrameworkInstanceBehavior.class, null);
    if (fsb != null) {
      IPath tempDir = fsb.getTempDirectory();
      if (!tempDir.isAbsolute()) {
        IPath rootPath = ResourcesPlugin.getWorkspace().getRoot().getLocation();
        tempDir = rootPath.append(tempDir);
      }
      setInstanceDirectory(tempDir.toPortableString());
    }

    try {
      getEquinoxConfiguration();
    } catch (CoreException e) {
      Trace.trace(Trace.SEVERE, "Can't setup for Equinox configuration.", e);
    }
  }