code: private HashMap<String, String> createRegistrationParams() {
          registrationKeyPair = KeyPairUtility.generateRandomKeyPair();
  
          JSONObject csrJSON = new JSONObject();
          HashMap<String, String> params;
  
          try {
              DeviceIdentity deviceData = new BaseDeviceIdentity(preferences.deviceIdentity.getAsMap());
              AppIdentity applicationData = new BaseAppIdentity(preferences.appIdentity.getAsMap());
  
              csrJSON.put("deviceId", deviceData.getId());
              csrJSON.put("deviceOs", "" + deviceData.getOS());
              csrJSON.put("deviceModel", deviceData.getModel());
              csrJSON.put("applicationId", applicationData.getId());
              csrJSON.put("applicationVersion", applicationData.getVersion());
              csrJSON.put("environment", "android");
  
              String csrValue = jsonSigner.sign(registrationKeyPair, csrJSON);
  
              params = new HashMap<>(1);
              params.put("CSR", csrValue);
  
              return params;
          } catch (Exception e) {
              throw new RuntimeException("Failed to create registration params", e);
          }
      }
docs: Generate the params that will be used during the registration phase
  @return Map with all the parameters