Part of the scheme is to have a special deal with the government of Ireland (if you share the view of the European Commission) or to have a corporate structure located in Ireland but at the same time not be a tax resident in Ireland (view of the Ireland government). In 2010 Ireland also added a new law which partially forbids this, except for all existing companies such as apple.