private PolicyDefinitionBean updatePluginIdInPolicyDefinition ( PolicyDefinitionBean policyDef ) { if ( pluginBeanIdMap . containsKey ( policyDef . getPluginId ( ) ) ) { try { Map . Entry < String , String > pluginCoordinates = pluginBeanIdMap . get ( policyDef . getPluginId ( ) ) ; PluginBean plugin = storage . getPlugin ( pluginCoordinates . getKey ( ) , pluginCoordinates . getValue ( ) ) ; policyDef . setPluginId ( plugin . getId ( ) ) ; } catch ( StorageException e ) { error ( e ) ; } } return policyDef ; }
Update the pluginID in the policyDefinition to the new generated pluginID