void updatePackageConfigurations(PackageType existingType, PackageType newType) { ConfigurationDefinition newConfigurationDefinition = newType.getDeploymentConfigurationDefinition(); if (newConfigurationDefinition != null) { if (existingType.getDeploymentConfigurationDefinition() == null) { } else { ConfigurationDefinition existingDefinition = existingType.getDeploymentConfigurationDefinition(); configurationMetadataMgr.updateConfigurationDefinition(newConfigurationDefinition, existingDefinition); if (existingType.getDeploymentConfigurationDefinition() != null) { existingType.setDeploymentConfigurationDefinition(null);