public String positionFor(Legislator legislator) {
   String stateName = Utils.stateCodeToName(fragment.getActivity(), legislator.state);
   String district;
   if (legislator.title.equals("Sen")) district = "Senator";
   else district = "District " + legislator.district;
   return legislator.party + " - " + stateName + " - " + district;
 }
 public static MenuLegislatorsFragment newInstance() {
   MenuLegislatorsFragment frag = new MenuLegislatorsFragment();
   frag.setRetainInstance(true);
   return frag;
 }
 public FavoriteLegislatorsAdapter(MenuLegislatorsFragment fragment, Cursor cursor) {
   super(fragment.getActivity(), cursor);
   this.fragment = fragment;
   this.inflater = LayoutInflater.from(fragment.getActivity());
 }