code: private IProvider getProviderFromTemplate(eu.atos.sla.parser.data.wsag.Template templateXML) throws ModelConversionException {
          
          Context context = templateXML.getContext();
          
          String provider = null;
          try {
              ServiceProvider ctxProvider = ServiceProvider.fromString(context.getServiceProvider());
               
              switch (ctxProvider) {
              case AGREEMENT_RESPONDER:
                  provider= context.getAgreementResponder();
                  break;
              case AGREEMENT_INITIATOR:
                  provider= context.getAgreementInitiator();
                  break;
              }
          } catch (IllegalArgumentException e) {
              throw new ModelConversionException("The Context/ServiceProvider field must match with the word "+ServiceProvider.AGREEMENT_RESPONDER+ " or "+ServiceProvider.AGREEMENT_INITIATOR);
          }
          IProvider providerObj = providerDAO.getByUUID(provider);
          return providerObj;
      }
docs: we retrieve the providerUUID from the template and get the provider object from the database