@Override
    public Object instantiateItem(ViewGroup container, int position) {
        Object fragment = super.instantiateItem(container, position);
        if (fragment instanceof IssueFragment) {
            fragments.put(position, (IssueFragment) fragment);
        }
        return fragment;
    }
@param activity
@param repository
@param issueNumbers
@param canWrite
app/src/main/java/com/github/pockethub/android/ui/issue/IssuesPagerAdapter.java