code: public Object[] getAll(Map<String, Object> data, String attr) {
      return (Object[]) data.get(attr);
    }
docs: <p>
  getAll.
  </p>
  
  @param data a {@link java.util.Map} object.
  @param attr a {@link java.lang.String} object.
  @return an array of {@link java.lang.Object} objects.