class DummyReader implements ProfileVersionReader {

  public Map<String, String> getDistribution(final String name) {
    final Element property = this.getPropertyElement(name);
    final boolean exists = Boolean.valueOf(this.getAttributeValue(property, "expanded"));

    if (exists) {
      final Map<String, String> distribution = new HashMap<String, String>();
      final List<?> items = property.selectNodes("//properties/property[@id='" + name + "']/*");

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

      return distribution;

    }

    return null;
  }

}