Implement getAttributeValue as two separate methods