code: public static Cardinality createCardinality(AtlasCardinality cardinality) {
          switch(cardinality) {
  
          case SINGLE:
              return Cardinality.SINGLE;
          case LIST:
              return Cardinality.LIST;
          case SET:
              return Cardinality.SET;
          default:
              throw new IllegalStateException("Unrecognized cardinality: " + cardinality);
          }
      }
docs: Converts a Multiplicity to a Cardinality.
  
  @param multiplicity
  @return