/**
   * @param monitor
   * @return non-null descriptor
   * @throws CoreException if failed to resolve descriptor
   * @throws OperationCanceledException if cancelled
   */
  protected DebugConnectionDescriptor resolveDescriptor(IProgressMonitor monitor)
      throws CoreException, OperationCanceledException {

    DebugConnectionDescriptor descriptor =
        provider.getDebugConnectionDescriptor(
            getApplicationModule(), getCloudFoundryServer(), monitor);

    return descriptor;
  }