fieldValue = null;
}
if (fieldValue != null) {
if (fieldValue instanceof List && field.getName().equals(pathName) && index.length() > 0) {
List<?> list = (List<?>) fieldValue;
MotionCurve subResult = findMotionCurve(list.get(Integer.parseInt(index)), pPath, pPathIndex + 1);
if (subResult != null) {
return subResult;
}
}
else if (fieldValue instanceof Map && field.getName().equals(pathName) && index.length() > 0) {
Map<?, ?> map = (Map<?, ?>) fieldValue;
MotionCurve subResult = findMotionCurve(map.get(index), pPath, pPathIndex + 1);
if (subResult != null) {
return subResult;
}
}
else if (field.getName().equals(pathName)) {
MotionCurve subResult = findMotionCurve(fieldValue, pPath, pPathIndex + 1);
if (subResult != null) {
return subResult;
}
}
}