Added a method to get an attribute value - the simple case.