code: private void setMandatoryAttachments(ResearchTrainingProgramPlanAttachments researchTrainingProgramPlanAttachments) {
          if (researchTrainingProgramPlanAttachments.getProgramPlan() == null) {
              researchTrainingProgramPlanAttachments.setProgramPlan(ProgramPlan.Factory.newInstance());
          }
      }
docs: This set any mandatory attachments that aren't set to blank objects so that validation errors can be more user friendly.