protected ArrayList<ChangedFile> parseFileList(final OtpErlangList fileList) {
final ArrayList<ChangedFile> ret = new ArrayList<ChangedFile>();
OtpErlangTuple e;
OtpErlangString oldPath, newPath;
for (int i = 0; i < fileList.arity(); ++i) {
e = (OtpErlangTuple) fileList.elementAt(i);
oldPath = (OtpErlangString) e.elementAt(0);
newPath = (OtpErlangString) e.elementAt(1);
final String newContent = OtpErlang.asString(e.elementAt(2));
ret.add(new ChangedFile(oldPath.stringValue(), newPath.stringValue(),
newContent));
}
return ret;
}