// Path: kraken_lib/src/main/java/com/github/marcosalis/kraken/utils/android/LogUtils.java
// @Beta
// public class LogUtils {
// 
//     @SuppressWarnings("unused")
//     private static final String TAG = LogUtils.class.getSimpleName();
// 
//     private LogUtils() {
//         // hidden constructor, no instantiation needed
//     }
// 
//     /**
//      * Logs a message in LogCat, only if library debugging is active.
//      *
//      * @param logLevel   The log level to use: must be one of the level constants provided by the
//      *                   {@link Log} class.
//      * @param logTag
//      * @param logMessage
//      */
//     public static void log(int logLevel, String logTag, String logMessage) {
//         if (DroidConfig.DEBUG) {
//             switch (logLevel) {
//                 case Log.ASSERT:
//                 case Log.VERBOSE:
//                     Log.v(logTag, logMessage);
//                     break;
//                 case Log.DEBUG:
//                     Log.d(logTag, logMessage);
//                     break;
//                 case Log.INFO:
//                     Log.i(logTag, logMessage);
//                     break;
//                 case Log.WARN:
//                     Log.w(logTag, logMessage);
//                     break;
//                 case Log.ERROR:
//                     Log.e(logTag, logMessage);
//                     break;
//             }
//         }
//     }
// 
//     /**
//      * Prints on LogCat a stack track of an exception, only if library debugging is active.
//      *
//      * @param t The {@link Throwable} to get the stack trace from
//      */
//     public static void logException(Throwable t) {
//         if (DroidConfig.DEBUG) {
//             if (t != null) {
//                 t.printStackTrace();
//             }
//         }
//     }
// 
//     /**
//      * Prints on LogCat a log warning message with the exception stack, only if library debugging is
//      * active.
//      *
//      * @param logTag
//      * @param logMessage
//      * @param t          The {@link Throwable} to get the stack trace from
//      */
//     public static void logException(String logTag, String logMessage, Throwable t) {
//         if (DroidConfig.DEBUG) {
//             if (t != null) {
//                 Log.w(logTag, logMessage, t);
//             }
//         }
//     }
// 
//     /**
//      * Prints on LogCat a log warning message with the exception's message string, only if library
//      * debugging is active.
//      *
//      * @param t The {@link Throwable} to get the message from
//      */
//     public static void logExceptionMessage(String logTag, String logMessage, Throwable t) {
//         if (DroidConfig.DEBUG) {
//             if (t != null) {
//                 Log.w(logTag,
//                         logMessage + "\n" + t.getClass().getSimpleName() + " message: "
//                                 + t.getMessage());
//             }
//         }
//     }
// 
// }


import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.guava.GuavaModule;
import com.github.marcosalis.kraken.utils.android.LogUtils;
import com.google.api.client.util.ObjectParser;
import com.google.common.annotations.Beta;
import java.io.IOException;
import javax.annotation.concurrent.Immutable;
     *
     * @return The {@link ObjectMapper}
     */
    @NonNull
    public static ObjectMapper getObjectMapper() {
        return INSTANCE.mMapper;
    }

    /**
     * Builds a new {@link JacksonHttpContent} from the source object.
     *
     * @param source The source object (keys must be specified for the mapping to work)
     * @return The built {@link JacksonHttpContent}
     */
    public static JacksonHttpContent buildHttpContent(@NonNull Object source) {
        return new JacksonHttpContent(source);
    }

    /**
     * Shortcut method to parse a POJO object into a JSON string
     *
     * @param data The object to parse
     * @return The string representation of that object (or null if the parse failed for an
     * IOException)
     */
    @Nullable
    public static String toJsonString(Object data) {
        try {
            return INSTANCE.mMapper.writeValueAsString(data);
        } catch (IOException e) {
// Path: kraken_lib/src/main/java/com/github/marcosalis/kraken/utils/android/LogUtils.java
// @Beta
// public class LogUtils {
// 
//     @SuppressWarnings("unused")
//     private static final String TAG = LogUtils.class.getSimpleName();
// 
//     private LogUtils() {
//         // hidden constructor, no instantiation needed
//     }
// 
//     /**
//      * Logs a message in LogCat, only if library debugging is active.
//      *
//      * @param logLevel   The log level to use: must be one of the level constants provided by the
//      *                   {@link Log} class.
//      * @param logTag
//      * @param logMessage
//      */
//     public static void log(int logLevel, String logTag, String logMessage) {
//         if (DroidConfig.DEBUG) {
//             switch (logLevel) {
//                 case Log.ASSERT:
//                 case Log.VERBOSE:
//                     Log.v(logTag, logMessage);
//                     break;
//                 case Log.DEBUG:
//                     Log.d(logTag, logMessage);
//                     break;
//                 case Log.INFO:
//                     Log.i(logTag, logMessage);
//                     break;
//                 case Log.WARN:
//                     Log.w(logTag, logMessage);
//                     break;
//                 case Log.ERROR:
//                     Log.e(logTag, logMessage);
//                     break;
//             }
//         }
//     }
// 
//     /**
//      * Prints on LogCat a stack track of an exception, only if library debugging is active.
//      *
//      * @param t The {@link Throwable} to get the stack trace from
//      */
//     public static void logException(Throwable t) {
//         if (DroidConfig.DEBUG) {
//             if (t != null) {
//                 t.printStackTrace();
//             }
//         }
//     }
// 
//     /**
//      * Prints on LogCat a log warning message with the exception stack, only if library debugging is
//      * active.
//      *
//      * @param logTag
//      * @param logMessage
//      * @param t          The {@link Throwable} to get the stack trace from
//      */
//     public static void logException(String logTag, String logMessage, Throwable t) {
//         if (DroidConfig.DEBUG) {
//             if (t != null) {
//                 Log.w(logTag, logMessage, t);
//             }
//         }
//     }
// 
//     /**
//      * Prints on LogCat a log warning message with the exception's message string, only if library
//      * debugging is active.
//      *
//      * @param t The {@link Throwable} to get the message from
//      */
//     public static void logExceptionMessage(String logTag, String logMessage, Throwable t) {
//         if (DroidConfig.DEBUG) {
//             if (t != null) {
//                 Log.w(logTag,
//                         logMessage + "\n" + t.getClass().getSimpleName() + " message: "
//                                 + t.getMessage());
//             }
//         }
//     }
// 
// }


// Path: kraken_lib/src/main/java/com/github/marcosalis/kraken/utils/json/JacksonJsonManager.java
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.guava.GuavaModule;
import com.github.marcosalis.kraken.utils.android.LogUtils;
import com.google.api.client.util.ObjectParser;
import com.google.common.annotations.Beta;
import java.io.IOException;
import javax.annotation.concurrent.Immutable;

     *
     * @return The {@link ObjectMapper}
     */
    @NonNull
    public static ObjectMapper getObjectMapper() {
        return INSTANCE.mMapper;
    }

    /**
     * Builds a new {@link JacksonHttpContent} from the source object.
     *
     * @param source The source object (keys must be specified for the mapping to work)
     * @return The built {@link JacksonHttpContent}
     */
    public static JacksonHttpContent buildHttpContent(@NonNull Object source) {
        return new JacksonHttpContent(source);
    }

    /**
     * Shortcut method to parse a POJO object into a JSON string
     *
     * @param data The object to parse
     * @return The string representation of that object (or null if the parse failed for an
     * IOException)
     */
    @Nullable
    public static String toJsonString(Object data) {
        try {
            return INSTANCE.mMapper.writeValueAsString(data);
        } catch (IOException e) {
            LogUtils.logException(e);