if (copyrightText != null) collection.setMetadata("copyright_text", copyrightText);
if (sidebarText != null) collection.setMetadata("side_bar_text", sidebarText);
if (introductoryText != null) collection.setMetadata("introductory_text", introductoryText);
if (provenance != null) collection.setMetadata("provenance_description", provenance);
if (licence != null) collection.setLicense(licence);
collection.update();
} else {
throw new EntityException("Internal server error", "Could not update collection", 500);
}
} catch (SQLException ex) {
throw new EntityException("Internal server error", "SQL error", 500);