private void addTransformAttribute(TransformAttribute attribute, Object result, Map<Integer, String> transformMap, Map<String, Object> attributes) { if (attribute == null) return; Object value = null; if (result != null) { value = transformMap.get(result); } else if (attribute.defaultValue().length() != 0) { value = attribute.defaultValue(); } attributes.put(attribute.value(), value); if (attribute.isSuper()) { addSuperAttribute(attribute.value(), value); } }
if (value != null) { result = transformAttributeMap.get(value); } else if (transformAttribute.defaultValue().length() != 0) { result = transformAttribute.defaultValue();