contract.getApiKey()));
String svcKey = getServiceKey(contract.getServiceOrgId(), contract.getServiceId(), contract.getServiceVersion());
if (!services.containsKey(svcKey)) {
throw new RegistrationException(Messages.i18n.format("InMemoryRegistry.ServiceNotFoundInOrg",
contract.getServiceId(), contract.getServiceOrgId()));
String svcKey = getServiceKey(contract.getServiceOrgId(), contract.getServiceId(), contract.getServiceVersion());
ServiceContract sc = new ServiceContract(contract.getApiKey(), services.get(svcKey), application, contract.getPolicies());
contracts.put(contract.getApiKey(), sc);