public ServiceDefinition getService(String name) throws Exception { ServiceDefinition service = repository.getServiceDefinition(name); if (service == null) { throw new Exception("Servico nao existe"); } return service; }
public void deployService(ServiceDefinition service) throws Exception { repository.addService(service); }