protected void executeRequests(boolean saveSuccessful) {
if (requests != null) {
IRequest[] requestArray = requests.get();
for (int i = 0; i < requestArray.length; i++) {
IRequest request = requestArray[i];
if (saveSuccessful || request.getExecuteOnFail())
request.execute();
else
request.end();
}
}
}