&& (session.getSubmissionActions().getPersonsToCreate() == null || session.getSubmissionActions().getPersonsToCreate().size() == 0)) throw new IllegalArgumentException("This form is not going to create an Patient");
if (submissionActions.getPersonsToCreate() != null) { for (Person p : submissionActions.getPersonsToCreate()) { if (p instanceof Patient) { Patient patient = (Patient) p;