Use getAttributeValue method with default.