Create a holder to hold the new SuperCoolFragment object. Then tag and return the holder object.
@Override
public Fragment getItem(int position) {
SuperCoolFragment superCoolFragment = new SuperCoolFragment();
superCoolFragment.setTag(YOUR_TAG);
return superCoolFragment;
}