// Path: app/src/main/java/discovery/contentful/CFApp.java
// public class CFApp extends Application {
//   public static CFApp sInstance;
// 
//   @Override
//   public void onCreate() {
//     super.onCreate();
// 
//     sInstance = this;
//   }
// 
//   public static CFApp getInstance() {
//     return sInstance;
//   }
// }
// 
// Path: app/src/main/java/discovery/contentful/api/CFDiscoveryClient.java
// public class CFDiscoveryClient {
//   private static CDAClient sInstance;
// 
//   private CFDiscoveryClient() {
//   }
// 
//   public static CDAClient getClient() {
//     if (sInstance == null) {
//       Context context = CFApp.getInstance();
// 
//       sInstance =
//           CDAClient.builder().setSpace(context.getString(R.string.discovery_space_key))
//               .setToken(context.getString(R.string.discovery_space_token))
//               .build();
//     }
// 
//     return sInstance;
//   }
// }


import discovery.contentful.CFApp;
import discovery.contentful.R;
import discovery.contentful.api.CFDiscoveryClient;
import com.contentful.java.cda.CDAAsset;
import com.contentful.java.cda.CDAEntry;
import java.util.ArrayList;
import retrofit.RetrofitError;
package discovery.contentful.loaders;


public class TutorialLoader extends AbsAsyncTaskLoader<TutorialLoader.Tutorial> {
  @Override protected Tutorial performLoad() {
    try {
      Tutorial tmp = new Tutorial();
      CDAEntry entry = CFDiscoveryClient.getClient().fetch(CDAEntry.class)
// Path: app/src/main/java/discovery/contentful/CFApp.java
// public class CFApp extends Application {
//   public static CFApp sInstance;
// 
//   @Override
//   public void onCreate() {
//     super.onCreate();
// 
//     sInstance = this;
//   }
// 
//   public static CFApp getInstance() {
//     return sInstance;
//   }
// }
// 
// Path: app/src/main/java/discovery/contentful/api/CFDiscoveryClient.java
// public class CFDiscoveryClient {
//   private static CDAClient sInstance;
// 
//   private CFDiscoveryClient() {
//   }
// 
//   public static CDAClient getClient() {
//     if (sInstance == null) {
//       Context context = CFApp.getInstance();
// 
//       sInstance =
//           CDAClient.builder().setSpace(context.getString(R.string.discovery_space_key))
//               .setToken(context.getString(R.string.discovery_space_token))
//               .build();
//     }
// 
//     return sInstance;
//   }
// }


// Path: app/src/main/java/discovery/contentful/loaders/TutorialLoader.java
import discovery.contentful.CFApp;
import discovery.contentful.R;
import discovery.contentful.api.CFDiscoveryClient;
import com.contentful.java.cda.CDAAsset;
import com.contentful.java.cda.CDAEntry;
import java.util.ArrayList;
import retrofit.RetrofitError;

package discovery.contentful.loaders;


public class TutorialLoader extends AbsAsyncTaskLoader<TutorialLoader.Tutorial> {
  @Override protected Tutorial performLoad() {
    try {
      Tutorial tmp = new Tutorial();
      CDAEntry entry = CFDiscoveryClient.getClient().fetch(CDAEntry.class)
          .one(CFApp.getInstance().getResources().getString(R.string.discovery_space_tutorial_id));