Form<?> form = new Form("form") {
@Override
protected void onSubmit() {
ReaderService readerService = (ReaderService) ApplicationContextProvider.getApplicationContext().getBean("readerService");
if (reader.getId() == null) {
readerService.createReader(reader);
} else {
readerService.updateReader(reader);
}
setResponsePage(ShowAllReader.class);
}