String validatorName = (String) properties.get(ChefConstants.VALIDATOR_NAME);
String validatorKeyFile = (String) properties.get(ChefConstants.VALIDATOR_KEY_FILE);
String validatorCredential = (String) properties.get(ChefConstants.VALIDATOR_CREDENTIAL);
String endpoint = (String) properties.get(ChefConstants.ENDPOINT);
ChefService service = ChefHelper.createChefService(apiMetadata, id, clientName, clientCredential, clientKeyFile, validatorName, validatorCredential, validatorKeyFile, endpoint);
newRegistration = bundleContext.registerService(
ChefService.class.getName(), service, properties);
//If all goes well remove the pending pid.
if (pendingPids.containsKey(pid)) {