private static ProjectSubmission createProjectSubmission(byte[] bytes, String filename, Attends attends, Project project,
StudentGroup studentGroup, final Group permittedGroup) throws FenixServiceException {
final ProjectSubmissionFile projectSubmissionFile = new ProjectSubmissionFile(filename, filename, bytes, permittedGroup);
final ProjectSubmission projectSubmission = new ProjectSubmission(project, studentGroup, attends, projectSubmissionFile);
new ProjectSubmissionLog(projectSubmission.getSubmissionDateTime(), filename, projectSubmissionFile.getContentType(),
projectSubmissionFile.getChecksum(), projectSubmissionFile.getChecksumAlgorithm(), bytes.length, studentGroup,
attends, project);
return projectSubmission;