message: adding initialization check for getService and hasService
diff: @@ -233,6 +233,11 @@ bool hasCompiler(const std::string& name);
  template<typename Service>
  std::shared_ptr<Service> getService(const std::string& serviceName) {
  + if (!xacc::xaccFrameworkInitialized) {
  + error(
  + "XACC not initialized before use. Please execute "
  + "xacc::Initialize() before using API.");
  + }
  auto service = serviceRegistry->getService<Service>(
  serviceName);
  if (!service) {
  @@ -245,6 +250,11 @@ std::shared_ptr<Service> getService(const std::string& serviceName) {
  template<typename Service>
  bool hasService(const std::string& serviceName) {
  + if (!xacc::xaccFrameworkInitialized) {
  + error(
  + "XACC not initialized before use. Please execute "
  + "xacc::Initialize() before using API.");
  + }
  return serviceRegistry->hasService<Service>(
  serviceName);
  }
  