Implementation of getAttributePaths