private static Integer computeLegacyIdFromCamera2Id(@Nonnull String camera2Id){
  try {
    return Integer.parseInt(camera2Id);
  }
 catch (  NumberFormatException ignored) {
  }
  return null;
}

private static Integer computeLegacyIdFromCamera2Id ( @ Nonnull String camera2Id ) { try { return Integer . parseInt ( camera2Id ) ; } catch ( NumberFormatException ignored ) { } return null ; }
this should compute a legacy api1 camera id for the given camera2 device . this class will return null if the camera2 identifier cannot be transformed into an api1 id .
