String licence = (String) inputVar.get("licence");
String provenance = (String) inputVar.get("provenance");
try {
if (communityId > 0) {
Community community = Community.find(context, communityId);
Collection collection = community.createCollection();
if (collection != null) {
collection.setMetadata("name", name);
collection.setMetadata("short_description", shortDescription);
collection.setMetadata("introductory_text", introductoryText);
collection.setMetadata("copyright_text", copyrightText);