/** * Gets the attribute value. * * @param entity the entity * @param attributeName the attribute name * @return the attribute value */ private String getAttributeValue(OnmsHwEntity entity, String attributeName) { if (attributeName.startsWith("entPhysical")) { BeanWrapper wrapper = PropertyAccessorFactory.forBeanPropertyAccess(entity); if (wrapper.isWritableProperty(attributeName)) { return (String) wrapper.getPropertyValue(attributeName); } } else { return entity.getAttributeValue(attributeName); } return null; } }