List<LicenseType> licenses = metadata.getLicense();
if (!licenses.isEmpty()) {
licenses.remove(0);
}
if (licenseString != null && !licenseString.trim().equals("")) {
LicenseType license = new LicenseType();
license.setValue(licenseString.trim());
license.setOsiApproved(osi != null && !osi.equals(""));
licenses.add(0, license);
}
String jvmsString = request.getParameter("jvmVersions");
split(jvmsString, instance.getJvmVersion());