* @return true if the context was set, false otherwise
*/
public boolean setRebalancerContext(ResourceId resourceId, RebalancerContext context) {
RebalancerConfig config = new RebalancerConfig(context);
ResourceConfiguration resourceConfig = new ResourceConfiguration(resourceId);
resourceConfig.addNamespacedConfig(config.toNamespacedConfig());
// update the ideal state if applicable
IdealState oldIdealState =
_accessor.getProperty(_keyBuilder.idealStates(resourceId.stringify()));
if (oldIdealState != null) {