*/
public static void main(final String[] args) throws Exception {
ApplicationContext context = new ClassPathXmlApplicationContext("app-context.xml");
;
EmailAddressTypeRepository repository = context.getBean(EmailAddressTypeRepository.class);
EmailAddressType addressType = new EmailAddressType();
addressType.setActive(true);
addressType.setDefaultDef(true);
addressType.setName("Nowy");
repository.save(addressType);
// EmailAddressType addressType = repository.find(1L);
EmailService service = context.getBean(EmailService.class);
service.doIt();