class ProductionProfileStrategy implements ProfileVersionReader {

  @Override
  public Map<String, String> getDistribution(final String name) {
    final Element property = this.getPropertyElement(name);
    
    if(property == null) {
      return null;
    }
    
    final Map<String, String> distribution = new HashMap<String, String>();
    final List<?> items = property.elements();

    if (items.isEmpty()) {
      return null;
    }

    for (Object o : items) {
      final Element e = (Element) o;
      final String key = e.attributeValue("id");
      final String value = e.attributeValue("value");
      distribution.put(key, value);
    }

    return distribution;

  }

}