added a check for the presence of the get_anyAttributes_ method before invoking it while building namespace definitions on export