code: private JMFType findVariantChildByName(JSVariant var, String name) {
      for (int i = 0; i < var.getCaseCount(); i++) {
        JMFType theCase = getEffectiveType(var.getCase(i));
        String caseName = theCase.getFeatureName();
        if (caseName != null && caseName.equals(name))
          return theCase;
      }
      return null;
    }
docs: Find the child of a variant by name