Get the currently configured {@link AccessModel}, null if it is not set.

@return The current {@link AccessModel}
167004
public AccessModel getAccessModel() {
        String value = getFieldValue(ConfigureNodeFields.access_model);

        if (value == null)
            return null;
        else
            return AccessModel.valueOf(value);
    }
407804
public static Profile getCurrentProfile() {
        RequestContext context = RequestContext.getCurrent();
        if (context != null) {
            return getProfile(context.getRequest());
        } else {
            return null;
        }
    }
878984
public java.lang.String getAccept() {
        return (java.lang.String) getStateHelper().eval(PropertyKeys.accept);

    }
527426
@Nullable
    public <A extends Expression<?>> A getCurrentAndReset() {
        A rv = this.getCurrent();
        reset();
        return rv;
    }
724249
public void setAccessModel(AccessModel accessModel) {
        addField(ConfigureNodeFields.access_model, FormField.Type.list_single);
        setAnswer(ConfigureNodeFields.access_model.getFieldName(), getListSingle(accessModel.toString()));
    }
985313
public K getCurrentKey()
    {
        lock.lock();
        try
        {
            Thread currentThread = Thread.currentThread();
            for (Entry<K,Thread> entry : threadMap.entrySet())
            {
                if (currentThread.equals(entry.getValue()))
                {
                    return entry.getKey();
                }
            }
            return null;
        }
        finally
        {
            lock.unlock();
        }
    }
396501
public function current()
	{
		$scopeFact = VariableBinding::current();
		if ( ! $scopeFact || ! is_array( $scopeFact ) )
		{
			$this->scopeFactGUID = null;
			return null;
		}

		$fact = $scopeFact['result'];

		/**
		 * @var FactVariableBinding $binding
		 */
		$binding = $scopeFact['lastFactBinding'];

		$this->aspectsCovered = $binding->aspectsCovered;
		$this->aspectsDefined = $binding->aspectsDefined;
		$this->uncoveredAspectFacts = $scopeFact['uncoveredAspectFacts'];

		$this->scopeFactGUID = isset( $scopeFact['GUID'] )
			? $scopeFact['GUID']
			: null;

		return $fact;
	}
551364
public static br_currentconfig get(nitro_service client, br_currentconfig resource) throws Exception
	{
		resource.validate("get");
		return ((br_currentconfig[]) resource.get_resources(client))[0];
	}
1087516
public function getSecurityModel()
    {
        if ($this->security_model)
            return $this->security_model;
        elseif ($this->getParent())
            return $this->getParent()->getSecurityModel();
        else
            return null;
    }
705262
public function getAccessToken()
    {
        $accessTokenAttribute = $this->accessTokenAttribute;
        return (is_string($accessTokenAttribute) && !empty($accessTokenAttribute)) ? $this->$accessTokenAttribute : null;
    }
961452
public Chain getCurrentChain(){
		if ( current_model_pos >= structure.nrModels()){
			return null;
		}

		List<Chain> model =  structure.getModel(current_model_pos);

		if ( current_chain_pos >= model.size() ){
			return null;
		}

		return model.get(current_chain_pos);

	}
821415
@Override
  public final synchronized AccSettings lazyGetAccSettings(
    final Map<String, Object> pAddParam) throws Exception {
    if (this.accSettings == null) {
      retrieveAccSettings(pAddParam);
    }
    return this.accSettings;
  }
382829
public function getAccessToken(){
		// get stored AccessToken
		$accessToken = $this->getConfig()->getStorage()->getAccessToken();
		if($accessToken !== null && $accessToken->isExpired()){
			// delete AccessToken if expired
			$this->getConfig()->getStorage()->deleteAccessToken();
			$accessToken = null;
		}
		if($accessToken !== null){
			// return AccessToken if stored and not expired
			return $accessToken;
		}
		// no AccessToken stored
		
		// get RefreshToken. May result in valid AccessToken
		$refreshToken = $this->getRefreshToken();
		if(null === $refreshToken){
			// no RefreshToken provided. need to continue polling.
			return null;
		}
		// check if AccessToken was set
		$accessToken = $this->getConfig()->getStorage()->getAccessToken();
		if($accessToken){
			return $accessToken;
		}
		// otherwise fetch new AccessToken with the RefreshToken
		return $this->getAccessTokenWithRefreshToken($refreshToken);
	}
58797
public String getVersion() {
        String version = getMavenModel().getVersion();
        if ( version == null && getMavenModel().getParent() != null ) {
            version = getMavenModel().getParent().getVersion();
        }

        return version;
    }
640528
@InterfaceAudience.Public
    public Map<String, Object> getUserProperties() {
        return getCurrentRevision() == null ? null : getCurrentRevision().getUserProperties();
    }
686831
public static <T extends AccessibleObject> T accessible(T accessible) {
        if (accessible == null) {
            return null;
        }

        if (accessible instanceof Member) {
            Member member = (Member) accessible;

            // check the modifier is public
            // if the AccessibleObject is can use then return
            if (Modifier.isPublic(member.getModifiers()) &&
                    Modifier.isPublic(member.getDeclaringClass().getModifiers())) {

                return accessible;
            }
        }

        // check the AccessibleObject isAccessible attr
        if (!accessible.isAccessible()) {
            // set accessible flag is true
            accessible.setAccessible(true);
        }

        return accessible;
    }
1361513
public Map<String, Accessor> getAccessors() {
    if (accessors == null)
      synchronized (this) {
        if (accessors == null)
          accessors = PropertyInfoSetResolver.resolveAccessors(source, type, configuration);
      }

    return accessors;
  }