T savedResource = resourceWriter.save(resource);
// savedResource = resourceReader.getResource(savedResource.getId(), resource.getClass());
resourceModel.setObject(savedResource);
eventsDispatcher.publishEvent(new ResourceChanged(savedResource.getContract(), savedResource));
//Reload the page
setResponsePage(ResourceManagement.class,
new PageParameters().add(ResourceManagement.PARAM_RESOURCE_ID, savedResource.getId()));
}