public Cardinality getCardinality(String component) {
    return new Cardinality(cardinalityRequirements.get(component));
  }
Obtain the required cardinality for the specified component.
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/Extension.java