class TermsAndConditionsFormPopulator implements CompetitionSetupFormPopulator {

    @Override
    public CompetitionSetupForm populateForm(CompetitionResource competitionResource) {
        TermsAndConditionsForm termsAndConditionsForm = new TermsAndConditionsForm();
        termsAndConditionsForm.setTermsAndConditionsId(competitionResource.getTermsAndConditions().getId());
        return termsAndConditionsForm;
    }

}