private static GeneralSubtree getGeneralSubtree(GeneralNameInterface gni) { // Create a new GeneralSubtree with the specified name, 0 base, and // unlimited length GeneralName gn = new GeneralName(gni); GeneralSubtree subTree = new GeneralSubtree(gn, 0, -1); return subTree; }