while (true) {
State currentState = state.get();
int size = currentState.fieldArray.length;
String name = prefix + size;
BundleField field = currentState.fieldMap.get(name);
if (field != null) {
continue;
}
Map<String, BundleField> newMap = new HashMap<>(currentState.fieldMap);
BundleField[] newArray = Arrays.copyOf(currentState.fieldArray, size + 1);