public DataBaseResolver(int id, TomahawkApp tomahawkApp, Collection collection) {
    mWeight = 1000;
    mReady = false;
    mStopped = true;
    mTomahawkApp = tomahawkApp;
    mId = id;
    mName = String.valueOf(collection.getId());
    if (collection.getId() == UserCollection.Id) {
      mIcon = mTomahawkApp.getResources().getDrawable(R.drawable.ic_action_collection);
    } else {
      mIcon = mTomahawkApp.getResources().getDrawable(R.drawable.ic_resolver_default);
    }
    mCollection = collection;

    mReady = true;
  }
  /** Called when the CollectionLoader has finished loading. */
  @Override
  public void onLoadFinished(Loader<Collection> loader, Collection coll) {
    super.onLoadFinished(loader, coll);

    mArtistAdapter =
        new ArrayAdapter<Artist>(
            getActivity(),
            R.layout.single_line_list_item,
            R.id.single_line_list_textview,
            coll.getArtists());
    setListAdapter(mArtistAdapter);
  }
 /**
  * Creates a CollectionPlaylist from Collection and sets the current Track to the Track at idx.
  */
 public static CollectionPlaylist fromCollection(Collection coll, Track currentTrack) {
   CollectionPlaylist pl = new CollectionPlaylist(coll.toString());
   pl.setTracks(coll.getTracks());
   pl.setCurrentTrack(currentTrack);
   return pl;
 }