ResourceVersionsType resourceVersions = pkg.getResourceVersions();
if (resourceVersions != null) {
details.setResourceVersions(new HashSet<String>(resourceVersions.getResourceVersion()));
}
ConfigurationType extraPropertiesXml = pkg.getExtraProperties();
if (extraPropertiesXml != null) {
Configuration config = new Configuration();
List<Object> configXml = extraPropertiesXml.getSimplePropertyOrListPropertyOrMapProperty();
for (Object object : configXml) {
if (object instanceof SimplePropertyType) {
config.put(translateSimpleProperty((SimplePropertyType) object, null));
} else if (object instanceof ListPropertyType) {
config.put(translateListProperty((ListPropertyType) object, null));