// Path: src/main/java/org/usergrid/android/client/utils/ObjectUtils.java
// public static boolean isEmpty(Object s) {
// 	if (s == null) {
// 		return true;
// 	}
// 	if ((s instanceof String) && (((String) s).trim().length() == 0)) {
// 		return true;
// 	}
// 	if (s instanceof Map) {
// 		return ((Map<?, ?>) s).isEmpty();
// 	}
// 	return false;
// }


import static org.usergrid.android.client.utils.ObjectUtils.isEmpty;
import java.io.UnsupportedEncodingException;
import java.util.UUID;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.provider.Settings.Secure;
import android.telephony.TelephonyManager;

	}

	private UUID generateDeviceUuid(Context context) {

		// Get some of the hardware information
		String buildParams = Build.BOARD + Build.BRAND + Build.CPU_ABI
				+ Build.DEVICE + Build.DISPLAY + Build.FINGERPRINT + Build.HOST
				+ Build.ID + Build.MANUFACTURER + Build.MODEL + Build.PRODUCT
				+ Build.TAGS + Build.TYPE + Build.USER;

		// Requires READ_PHONE_STATE
		TelephonyManager tm = (TelephonyManager) context
				.getSystemService(Context.TELEPHONY_SERVICE);

		// gets the imei (GSM) or MEID/ESN (CDMA)
		String imei = tm.getDeviceId();

		// gets the android-assigned id
		String androidId = Secure.getString(context.getContentResolver(),
				Secure.ANDROID_ID);

		// requires ACCESS_WIFI_STATE
		WifiManager wm = (WifiManager) context
				.getSystemService(Context.WIFI_SERVICE);

		// gets the MAC address
		String mac = wm.getConnectionInfo().getMacAddress();

		// if we've got nothing, return a random UUID
// Path: src/main/java/org/usergrid/android/client/utils/ObjectUtils.java
// public static boolean isEmpty(Object s) {
// 	if (s == null) {
// 		return true;
// 	}
// 	if ((s instanceof String) && (((String) s).trim().length() == 0)) {
// 		return true;
// 	}
// 	if (s instanceof Map) {
// 		return ((Map<?, ?>) s).isEmpty();
// 	}
// 	return false;
// }


// Path: src/main/java/org/usergrid/android/client/utils/DeviceUuidFactory.java
import static org.usergrid.android.client.utils.ObjectUtils.isEmpty;
import java.io.UnsupportedEncodingException;
import java.util.UUID;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.provider.Settings.Secure;
import android.telephony.TelephonyManager;


	}

	private UUID generateDeviceUuid(Context context) {

		// Get some of the hardware information
		String buildParams = Build.BOARD + Build.BRAND + Build.CPU_ABI
				+ Build.DEVICE + Build.DISPLAY + Build.FINGERPRINT + Build.HOST
				+ Build.ID + Build.MANUFACTURER + Build.MODEL + Build.PRODUCT
				+ Build.TAGS + Build.TYPE + Build.USER;

		// Requires READ_PHONE_STATE
		TelephonyManager tm = (TelephonyManager) context
				.getSystemService(Context.TELEPHONY_SERVICE);

		// gets the imei (GSM) or MEID/ESN (CDMA)
		String imei = tm.getDeviceId();

		// gets the android-assigned id
		String androidId = Secure.getString(context.getContentResolver(),
				Secure.ANDROID_ID);

		// requires ACCESS_WIFI_STATE
		WifiManager wm = (WifiManager) context
				.getSystemService(Context.WIFI_SERVICE);

		// gets the MAC address
		String mac = wm.getConnectionInfo().getMacAddress();

		// if we've got nothing, return a random UUID
		if (isEmpty(imei) && isEmpty(androidId) && isEmpty(mac)) {