Orix Credit Alliance, Inc. (“OCAI”) appeals the district court’s (1) dismissal of its Complaint for Issuance of Preliminary Injunction, Permanent Injunction and Declaratory Judgment (the “declaratory judgment complaint”), and (2) denial of its subsequent motion for leave to amend the declaratory judgment complaint. For the reasons set forth below, we vacate the judgment of the district court and remand *893 with instruction to dismiss OCAI’s complaint as unripe fоr adjudication.
I
The declaratory judgment complaint is the most recent filing in a long and complicated history of litigation between OCAI, ABC Utilities Services, Inc. (“ABC Utilities”), ABC Asphalt, Inc. (“Asphalt”), and Utilities Equipment Leasing Company, Inc. (“UELCO”) (collectively, “the ABC entities”). Between 1984 and 1989, OCAI, a commercial finance company, entered into a series of secured lease and finance transactions with UELCO and Asphalt to finance the acquisition of construction equipment (the “financing transactions”). ABC Utilities, the parent company of Asphalt and UELCO, guaranteed the debts of these entities to OCAI. Frank Wolfe is the president and sole director of ABC Utilities, UELCO and Asphalt. Lexie Wolfe is Frank Wolfe’s mother.
In April 1989, the ABC entities filed for bankruptcy under Chapter 11. In October 1989, the ABC entities filed a complaint in federal district court against OCAI alleging, inter alia, that some of the transactions between OCAI and the ABC entities were usurious (“ABC I”). In May 1993, the district court granted summary judgment in favor of OCAI. The ABC entities’ subsequent motion for a new trial and to set aside the judgment was denied.
Shortly thereafter, in July 1993, the ABC entities commenced an adversary proceeding against OCAI in the bankruptcy court on behalf of the bankruptcy Trustee alleging, inter alia, fraud on the part of OCAI in the transactions with the ABC entities (“ABC II”). In ABC II, the entities raised several issues that they had previously raised in ABC I. Accordingly, the district court withdrew its reference to the bankruptcy court, and the case was transferred to the district court. In January 1994, the district court granted summary judgment in favor of OCAI on the grounds of res judicata. 1 In May 1995, we affirmed the judgments of the district court in both ABC I and ABC II and held that the ABC entities were not entitled to relief under Fed.R.Civ.P. 50(b)(3) or (b)(6).
During this time period, related actions were proceeding in the bankruptсy court. After the ABC entities filed for chapter 11 bankruptcy, OCAI began filing motions for relief from the automatic stay provision of 11 U.S.C. § 362 against Asphalt and UEL-CO in which OCAI asserted that it was owed a specific amount by the ABC entities. In opposing OCAI’s third motion for relief in November 1991, 2 UELCO stated that it owed OCAI approximately $150,000 less than OCAI claimed it was owed. The bankruptcy court held an evidentiary hearing during which it heard testimony concerning the amount of money owed OCAI by Asphalt and UELCO. Ultimately, the bankruptcy court granted OCAI’s third motion for relief from the stay and rendered findings of fact specifying the amount owed to OCAI.
Frank Wolfe and a creditor of UELCO subsequently filed objections to OCAI’s claims against the bankruptcy estates of the ABC entities, alleging that OCAI overstated the amount that it was owed by UELCO and Asphalt (the “Objections to Claims”). In February 1996, the bankruptcy court granted OCAI’s motion fоr summary judgment, dismissing the Objections to Claims on the basis of res judica-ta. Specifically, the court found that the judgments in ABC I and ABC II and the judgment of the bankruptcy court on the third motion to lift the stay barred the objections.
Later that year, Frank Wolfe retained attorney Bruce Budner and commenced a *894 malpractice action in Texas state court on behalf of the bankruptcy estates of the ABC entities against several of the аttorneys who had represented the entities throughout this litigation (the “Malpractice Action”). Wolfe alleged that as a result of the attorneys’ malpractice, the ABC entities lost their claims against OCAL Several disputes arose between OCAI and the ABC entities as a result of the latter’s discovery requests. Budner litigated several disputes and was able to obtain some discovery from OCAI. Ultimately, OCAI and the ABC entities enterеd into a settlement resolving these disputes, which was approved by the state court (the “OCAI Settlement”).
After the state court approved the settlement, Budner filed a motion to approve the OCAI Settlement in the bankruptcy court. Wolfe, however, retained new counsel and opposed the OCAI Settlement. Wolfe also noticed the deposition of his former attorney Budner and issued a subpoenа duces tecum seeking to compel Bud-ner to turn over the documents that OCAI had produced in the Malpractice Action. OCAI filed an emergency motion for a protective order and to quash both subpoenas. The Wolfes filed a motion in opposition in which they stated that “the documents which Bruce A. Budner will produce at the deposition will support a Motion for Reconsideration by Frank A. Wolfe and his mother, Lexiе D. Wolfe” of the denial of the Objections to Claims. As an exhibit to their opposition papers, the Wolfes attached a draft of a motion to set aside the judgment on the Objections to Claims (the “draft motion”). 3 The bankruptcy court denied the motion to quash, and OCAI sought leave to file an interlocutory appeal of that ruling. 4
Finally, in December 1998, OCAI filed this declaratory judgment complaint. The complaint allеged that the threatened claim in the draft motion sought to reopen issues that were barred under the doctrine of res judicata by ABC I, ABC II,. our decision affirming these cases, and the final order of the bankruptcy court. OCAI sought relief in the form of: (1) a declaratory judgment stating that “any and all claims, objections to claims, actions and proceeding which arise out of or relate in any way to the relationship between ORIX Credit Alliаnce, Inc. and ABC Asphalt, Inc. and/or Utilities Equipment Leasing Co., Inc., and/or ABC Utilities Services, Inc. are barred by res judicata and other doctrines of claim and issue preclusion”; (2) a declaratory judgment that “any and all claims against OCAI relating to transactions between OCAI and the ABC entities are estopped”; and (3) a preliminary and permanent injunction “enjoining Frank A. Wolfe, Lexie D. Wolfe, and all other persons and entities in privity with еither as an owner, officer, and/or creditor of any ABC Entity, or acting in concert with them, from commencing, pursuing, or prosecuting any claim, objection, action, or proceeding, however denominated, against ORIX Credit Alliance, Inc., its successors and assigns, arising out of or relating to any transaction between or involving OCAI and ABC Asphalt, Inc., and/or Utilities Equipment Leasing Co., Inc. and/or ABC Utilities Services, Inc. and requiring them to return the documents to OCAI in accordance with the Confidentiality Order and the Settlement entered by the [state court].”
The Wolfes moved to dismiss, alleging that no actual controversy existed between them and OCAL The district court granted the Wolfes’ motion to dismiss on different *895 grounds. Specifically, the court found that there was an actual controversy between the Wolfes and OCAI based upon the threatened actiоn. However, the district court exercised its discretion to abstain from hearing the declaratory judgment complaint. 5
In June 1999, OCAI filed a motion for reconsideration of the district court’s dismissal, which also sought leave to amend the declaratory judgment complaint so as to invoke bankruptcy court jurisdiction. The district court denied the motion, and OCAI filed this timely appeal. 6
OCAI now argues that the district court abused its discretion by dismissing the declaratory judgment complaint. Alternatively, OCAI contends that the district court erred in denying it leave to amend the declaratory judgment complaint so as to assert bankruptcy jurisdiction.
II
When considering a declaratory judgment action, a district court must engage in a three-step inquiry. First, the court must determine whether the declaratory action is justiciable. Typically, this becomes a question of whеther an “actual controversy” exists between the parties to the action.
See Rowan Companies, Inc. v. Griffin,
While none of the parties challenge the ripeness of the declaratory judgment complaint on appeal, we have a duty to consider objections to our jurisdiction
sua sponte. See United Transportation Union v. Foster,
A court should dismiss a case for lack of “ripeness” when the case is abstract or hypothetical. The key considerations аre “the fitness of the issues for judicial decision and the hardship to the parties of withholding court consideration.” A case is generally ripe if any remaining questions are purely legal ones; conversely, a case is not ripe if further factual development is required.
*896
Id.
at 586-87 (quoting
Abbott Laboratories,
Many courts havе recognized that applying the ripeness doctrine in the declaratory judgment context presents a unique challenge.
See, e.g., Rhode Island v. Narragansett Indian Tribe,
A declaratory judgment action is ripe for adjudication only where an “actual controversy” exists.
See
28 U.S.C. § 2201(a) (“In a case of
actual controversy
within its jurisdiction ... any court of the United States ... may declare the right and other legal relations of any interested party seeking such declaration.”) (emphasis added);
Texas v. West Publ’g. Co.,
Here, the district court found that an “actual controversy” existed such that it had jurisdiction to consider the declaratory judgment complaint. We disagree. The “controversy” that OCAI seeks to resolve through a declaratory judgment and injunction is largely, if not purely, hypothetical.
See United Transp. Union,
The district court based its determination that an actual controversy existed on the “potential litigation which can arise in the bankruptcy court.” Indeed, in its pleadings, OCAI appears to root its entire “actual controversy” argument in the threatened draft motion. While this presents a somewhat closer question, we do not believe that the possibility that this motion will be filed is sufficiently immediate and real so as to constitute a justiciable contro
*897
versy.
See Middle South Energy,
The threat of litigation, if specific and concrete, can indeed establish a controversy upon which declaratory judgment can be based.
See NUCOR Corp. v. Aceros Y Maquilas de Occidente,
In this case, whether or not the Wolfes will ever file the draft motion hinges upon several contingencies. Specifically, in order to file the motion, the Wolfes must discover documents in the Budner subpoena production that support a claim to reconsider their Objections to Claims. At this point in the litigation, the types of documents that would allow the Wolfes to file a credible motion for reconsideration are few.
7
At oral argument, the Wolfes conceded that in order to file such a motion after the final ruling of the bankruptcy court, the Budner production would have to include documents demоnstrating that OCAI engaged in “fraud ... misrepresentation, or some other misconduct.” Fed.R.Civ.P. 60(b). OCAI simply fails to allege facts that show that these contingencies are likely to occur.
See West Publ’g. Co.,
Using
res judicata
to bar the Wolfes from filing the draft motion is particularly problematic. The precise legal issues that the Wolfes will raise in the motion are unclear at this time. The proposed motion for reconsideration was attached, in draft form, as an exhibit to the Wolfes’ opposition to OCAI’s motion to
*898
quash the Budner subpoenas.
8
Clearly, the contours of that motion could, and likely would, change depending upon, amongst other things, the content of the subpoena production. At this point, we cannot say that the threatened dispute has “taken on final shape so that the court can see what legal issues it is deciding.”
El Paso Building & Const. Trades Council v. El Paso Chapter Associated General Contractors of America,
In sum, we find that the district court erred in finding that an “actual controversy” existed such that the court had jurisdiction to considеr the declaratory judgment complaint. 10 Because no such controversy exists, OCAI’s declaratory judgment action is not ripe for adjudication. Accordingly, we VACATE the judgment of the district court and REMAND with instruction to dismiss the complaint as unripe. 11
Notes
. The district court found that "[t]here is no question that the claims asserted in this action are the same claims asserted in [ABC I] ... which was denied adversely to the Plaintiffs therein.”
. OCAI’s first two motions for relief were denied.
. We note that neither party has included a copy of the draft motion in its record excerpts. Nor are we able to locate a copy of the motion in the record on appeal.
; Ruling on the motion to appeal the bankruptcy court’s discovery ruling, the district court refused to stay the deposition and document production for the pendency of the appeal and ordered that the document productions proceed subject to a confidentiality order essentially identical to the order in the state court case. Budner's deposition went forward in October 1998.
. The court also denied OCAI’s interlocutory appeal of the bankruptcy court's discovery rulings.
. In September 1999, the bankruptcy court entered an order approving the OCAI Settlement.
. It is worthy of notice that in the eleven years since the Wolfes first filed suit against OCAI, they have been unable to uncover documents to support their claims. It is also noteworthy that the documents that the Wolfes subpoenaed from Budner were, presumably, available to the Wolfes throughout the Malpractice Action and yet did not prompt them to file a motion for reconsideration at that time.
. We reiterate that we have not had the opрortunity to review the draft motion. See supra note 3.
. The procedural posture of this case — OCAI's filing of a declaratory judgment complaint to obtain a
res judicata
ruling — raises some more general concerns. Generally speaking,
res judicata
is an affirmative defense to a case that has been filed.
See
Fed.R.Civ.P. 8(c);
cf. Warnock
v.
Pecos Cty.,
. Nor do we think that withholding judicial consideration of this action presents a hardship to the parties.
See Abbott Labs.,
. Since we find that the declaratory judgment complaint is not ripe for adjudication, OCAI's claim that the district court erred in denying it leave to amend the complaint so as to assert bankruptcy court jurisdiction is moot.
