getSessionBean1().getPartnership().getIdContact() == null) {
error("This page is not correctly initialized (partnership missing).");
} else {
getSessionBean1().getDocumentDataProvider().setContact(
getSessionBean1().getPartnership());
getSessionBean1().setEventAttendedDataProvider(new EventDataProvider(
getSessionBean1().getPartnership().getEventsAttended()));
getSessionBean1().setEventOrganizedDataProvider(new EventDataProvider(
getSessionBean1().getPartnership().getOrganize()));
// Create a donation data provider for this contact
DonationDataProvider donationDP = new DonationDataProvider();
donationDP.setContact(getSessionBean1().getPartnership());
getSessionBean1().setDonationDataProvider(donationDP);