Get an instance of the PDQ Consumer Auditor from the
global context

@return PDQ Consumer Auditor instance
160364
public static PDQConsumerAuditor getAuditor()
	{
		AuditorModuleContext ctx = AuditorModuleContext.getContext();
		return (PDQConsumerAuditor)ctx.getAuditor(PDQConsumerAuditor.class);
	}
133878
@Override
    public ConsumerManager getConsumerManager()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "getConsumerManager");

        ConsumerManager manager = (ConsumerManager) getOutputHandler();

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "getConsumerManager", manager);
        return manager;
    }
749465
public static final MQLinkManager getInstance()
   {
      if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getInstance");

      if (mqLinkManager == null)
      {
         try
         {
            Class cls = Class.forName(CommsConstants.JS_COMMS_MQ_LINK_MANAGER_CLASS);
            mqLinkManager = (MQLinkManager) cls.newInstance();

         }
         catch (Exception e)
         {
            FFDCFilter.processException(e, CLASS_NAME + ".getInstance", 
                                        "1");
            if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())
            {
               SibTr.exception(tc, e);
            }
            throw new RuntimeException(e);
         }
      }

      if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "getInstance", mqLinkManager);
      return mqLinkManager;
   }
21270
public Consumer<AppendGroupOp> asAppendGroupConsumer() {
        return new Consumer<AppendGroupOp>() {
            @Override
            public void accept(AppendGroupOp op) throws Exception {
                appendWith(op.getArg1());
            }
        };
    }
1253505
public static EQLInvoker getInvoker()
    {
        final EQLInvoker ret = new EQLInvoker()
        {
            @Override
            protected AbstractPrintStmt getPrint()
            {
                return new PrintStmt();
            }

            @Override
            protected AbstractInsertStmt getInsert()
            {
                return new InsertStmt();
            }

            @Override
            protected AbstractExecStmt getExec()
            {
                return new ExecStmt();
            }

            @Override
            protected AbstractUpdateStmt getUpdate()
            {
                return new UpdateStmt();
            }

            @Override
            protected AbstractDeleteStmt getDelete()
            {
                return new DeleteStmt();
            }

            @Override
            protected INestedQueryStmtPart getNestedQuery()
            {
                return super.getNestedQuery();
            }

            @Override
            protected AbstractCIPrintStmt getCIPrint()
            {
                return new CIPrintStmt();
            }
        };
        ret.getValidator().setDiagnosticClazz(EFapsDiagnostic.class);
        ret.getValidator().addValidation("EQLJavaValidator.type", new TypeValidation());
        return ret;
    }
1328221
public function getConsumerService()
    {
        if ($this->consumerService === null) {
            $this->consumerService = new ConsumerService(
                $this->getHeaderPartFactory(),
                $this->getMimeLiteralPartFactory()
            );
        }
        return $this->consumerService;
    }
956830
private static Audit getCodeReviewAudit(JSONArray jsonArray, JSONArray global) {

        LOGGER.info("NFRR Audit Collector auditing CODE_REVIEW");
        Audit audit = new Audit();
        audit.setType(AuditType.CODE_REVIEW);

        Audit basicAudit;
        if ((basicAudit = doBasicAuditCheck(jsonArray, global, AuditType.CODE_REVIEW)) != null) {
            return basicAudit;
        }
        audit.setAuditStatus(AuditStatus.OK);
        audit.setDataStatus(DataStatus.OK);
        for (Object o : jsonArray) {
            JSONObject jo = (JSONObject) o;
            audit.getUrl().add((String) jo.get(STR_URL));
            JSONArray directCommits = (JSONArray) jo.get(STR_DIRECTCOMMITS);
            if (!CollectionUtils.isEmpty(directCommits)) {
                audit.setAuditStatus(AuditStatus.FAIL);
                audit.setDataStatus(DataStatus.OK);
                return audit;
            }
            JSONArray pulls = (JSONArray) ((JSONObject) o).get(STR_PULLREQUESTS);
            for (Object po : pulls) {
                JSONArray auditJO = (JSONArray) ((JSONObject) po).get(STR_AUDITSTATUSES);
                boolean reviewed = false;
                auditJO.stream().map(aj -> audit.getAuditStatusCodes().add((String) aj));

                for (Object s : auditJO) {
                    String status = (String) s;
                    audit.getAuditStatusCodes().add(status);
                    if (CodeReviewAuditStatus.PEER_REVIEW_GHR.name().equalsIgnoreCase(status) ||
                            (CodeReviewAuditStatus.PEER_REVIEW_LGTM_SUCCESS.name().equalsIgnoreCase(status))) {
                        reviewed = true;
                        break;
                    }
                }
                if (!reviewed) {
                    audit.setAuditStatus(AuditStatus.FAIL);
                    audit.setDataStatus(DataStatus.OK);
                    return audit;
                }
            }
        }
        return audit;
    }
1299077
public static AuditEntryBean clientRegistered(ClientVersionBean bean,
            ISecurityContext securityContext) {
        AuditEntryBean entry = newEntry(bean.getClient().getOrganization().getId(), AuditEntityType.Client, securityContext);
        entry.setEntityId(bean.getClient().getId());
        entry.setEntityVersion(bean.getVersion());
        entry.setWhat(AuditEntryType.Register);
        return entry;
    }
755747
private static Audit getSecurityAudit(JSONArray jsonArray, JSONArray global) {

        LOGGER.info("NFRR Audit Collector auditing STATIC_SECURITY_ANALYSIS");
        Audit audit = new Audit();
        audit.setType(AuditType.STATIC_SECURITY_ANALYSIS);
        Audit basicAudit;
        if ((basicAudit = doBasicAuditCheck(jsonArray, global, AuditType.STATIC_SECURITY_ANALYSIS)) != null) {
            return basicAudit;
        }
        Set<String> auditStatuses;
        for (Object o : jsonArray) {
            JSONArray auditJO = (JSONArray) ((JSONObject) o).get(STR_AUDITSTATUSES);
            Optional<Object> urlOptObj = Optional.ofNullable(((JSONObject) o).get(STR_URL));
            urlOptObj.ifPresent(urlObj -> audit.getUrl().add(urlOptObj.get().toString()));
            auditJO.stream().forEach(status -> audit.getAuditStatusCodes().add((String) status));
        }
        auditStatuses = audit.getAuditStatusCodes();
        if(auditStatuses.contains(CodeQualityAuditStatus.STATIC_SECURITY_SCAN_FAIL.name()) ||
                auditStatuses.contains(CodeQualityAuditStatus.STATIC_SECURITY_SCAN_FOUND_HIGH.name()) ||
                auditStatuses.contains(CodeQualityAuditStatus.STATIC_SECURITY_SCAN_FOUND_CRITICAL.name())){
            audit.setAuditStatus(AuditStatus.FAIL);
            audit.setDataStatus(DataStatus.OK);
        }else if(auditStatuses.contains(CodeQualityAuditStatus.STATIC_SECURITY_SCAN_OK.name()) ){
            audit.setAuditStatus(AuditStatus.OK);
            audit.setDataStatus(DataStatus.OK);
        }else {
            audit.setAuditStatus(AuditStatus.NA);
            audit.setDataStatus(DataStatus.NO_DATA);
        }
        return audit;
    }
430914
public static GoogleConnector getInstance() {
        if (instance == null) {
            try {
                instance = new GoogleConnector();
            } catch (Exception e) {
                throw new RuntimeException("The GoogleConnector could not be instanced!", e);
            }
        }
        return instance;
    }
1197681
public function getConsumerStatic ()
	{
		$consumer = $this->query_one('
						SELECT osr_consumer_key
						FROM oauth_server_registry
						WHERE osr_consumer_key LIKE \'sc-%%\'
						  AND osr_usa_id_ref IS NULL
						');

		if (empty($consumer))
		{
			$consumer_key = 'sc-'.$this->generateKey(true);
			$this->query('
				INSERT INTO oauth_server_registry
				SET osr_enabled				= 1,
					osr_status				= \'active\',
					osr_usa_id_ref			= NULL,
					osr_consumer_key		= \'%s\',
					osr_consumer_secret		= \'\',
					osr_requester_name		= \'\',
					osr_requester_email		= \'\',
					osr_callback_uri		= \'\',
					osr_application_uri		= \'\',
					osr_application_title	= \'Static shared consumer key\',
					osr_application_descr	= \'\',
					osr_application_notes	= \'Static shared consumer key\',
					osr_application_type	= \'\',
					osr_application_commercial = 0,
					osr_timestamp			= NOW(),
					osr_issue_date			= NOW()
				',
				$consumer_key
				);
			
			// Just make sure that if the consumer key is truncated that we get the truncated string
			$consumer = $this->getConsumerStatic();
		}
		return $consumer;
	}
159748
public ProcessInstance getProcessInstance() {
    Execution execution = getExecution();
    if(execution != null && !(execution.getProcessInstanceId().equals(execution.getId()))){
      return processEngine
            .getRuntimeService()
            .createProcessInstanceQuery()
            .processInstanceId(execution.getProcessInstanceId())
            .singleResult();
    }
    return (ProcessInstance) execution;
  }
670113
public static XDSRegistryAuditor getAuditor()
	{
		AuditorModuleContext ctx = AuditorModuleContext.getContext();
		return (XDSRegistryAuditor)ctx.getAuditor(XDSRegistryAuditor.class);
	}
414991
public static function instance()
    {
        if ( !self::$instance instanceof ezpContentPublishingQueueProcessor )
        {
            self::$instance = new ezpContentPublishingQueueProcessor();
            // signal handler for children termination signal
            self::$instance->registerSignalHandler();
        }

        return self::$instance;
    }
382505
public static Iso8601UtilImpl getInstance() {

    if (instance == null) {
      synchronized (Iso8601UtilImpl.class) {
        if (instance == null) {
          instance = new Iso8601UtilImpl();
        }
      }
    }
    return instance;
  }
1017764
public static JustificationBuilder getInstance() {

    if (instance == null) {
      synchronized (JustificationBuilderImpl.class) {
        if (instance == null) {
          instance = new JustificationBuilderImpl();
        }
      }
    }
    return instance;
  }
580933
public static function getInstance() {

		if( !isset( self::$instance ) ) {

			self::$instance	= new CacheProperties();

			self::$instance->init( CoreGlobal::CONFIG_CACHE );
		}

		return self::$instance;
	}