public void onSubmit(final AjaxRequestTarget target, Form form) {
// perform manual processing otherwise the component contents won't be updated
form.process();
ResourceInfo resource = (ResourceInfo) BasicResourceConfig.this.getModelObject();
try {
CatalogBuilder cb = new CatalogBuilder(GeoServerApplication.get().getCatalog());
ReferencedEnvelope bounds = cb.getNativeBounds(resource);
resource.setNativeBoundingBox(bounds);
nativeBBox.setModelObject(bounds);
} catch(IOException e) {
LOGGER.log(Level.SEVERE, "Error computing the native BBOX", e);
error("Error computing the native BBOX:" + e.getMessage());