public boolean isComplete() {
    runtime = (IRuntimeWorkingCopy) getTaskModel().getObject(TaskModel.TASK_RUNTIME);

    if (runtime != null) {
      GenericServerRuntime gRuntime =
          (GenericServerRuntime)
              runtime.loadAdapter(GenericServerRuntime.class, new NullProgressMonitor());

      Map properties = gRuntime.getServerInstanceProperties();
      String serverName = (String) properties.get("server.name");
      if (serverName != null) {
        runtime.setName(serverName);
      }
    }
    return super.isComplete();
  }
  protected List getStartClasspath() {
    List startClasspath = super.getStartClasspath();
    GenericServerRuntime runtime = getRuntimeDelegate();

    IVMInstall vmInstall = runtime.getVMInstall();
    File jdkLib = new File(vmInstall.getInstallLocation(), "lib");

    if (jdkLib.exists() && jdkLib.isDirectory()) {
      for (String cpath : jdkLib.list()) {
        Path newCPath = new Path(new File(jdkLib, cpath).toString());
        String fileExtension = newCPath.getFileExtension();
        if (fileExtension != null && fileExtension.equalsIgnoreCase("jar"))
          startClasspath.add(JavaRuntime.newArchiveRuntimeClasspathEntry(newCPath));
      }
    }
    return startClasspath;
  }