code: private Device loadDevice() {
          //Initialise object with the content saved in shared pref file.
          SharedPreferences sharedPreferences = getSharedPreferences();
          return new Device()
                  .setApiSpaceId(sharedPreferences.getString(KEY_API_SPACE_ID, null))
                  .setAppVer(sharedPreferences.getInt(KEY_APP_VER, -1))
                  .setInstanceId(sharedPreferences.getString(KEY_INSTANCE_ID, null))
                  .setPushToken(sharedPreferences.getString(KEY_PUSH_TOKEN, null))
                  .setDeviceId(sharedPreferences.getString(KEY_DEVICE_ID, null));
      }
docs: Loads device details from internal storage.
  
  @return Loaded device details.