changes made for fetching entity by alias