@Override public Map<AttributeSensor, Object> getAllAttributes() { Map<AttributeSensor, Object> result = Maps.newLinkedHashMap(); Map<String, Object> attribs = attributesInternal.asMap(); for (Map.Entry<String,Object> entry : attribs.entrySet()) { AttributeSensor attribKey = (AttributeSensor) entityType.getSensor(entry.getKey()); if (attribKey == null) { LOG.warn("When retrieving all attributes of {}, ignoring attribute {} because no matching AttributeSensor found", this, entry.getKey()); } else { result.put(attribKey, entry.getValue()); } } return result; }