docs: protected Map<String, Object> getAttributesForComponent(Component component) {
  
          Map<String, Object> result = Maps.newHashMap();
          if (component instanceof AbstractComponent) {
              AbstractComponent abstractComp = (AbstractComponent)component;
              if (abstractComp.getData() instanceof Map) {
                  Map<?, ?> map = (Map<?, ?>)abstractComp.getData();
                  for (Map.Entry<?, ?> entry : map.entrySet()) {
                      if (entry.getKey() instanceof String) {
                          result.put((String)(entry.getKey()), entry.getValue());
                      }
                  }
              }
          }
          return result;
      }