Getattrselectionlogic