Looks up the mail account that is reserved for the current thread under the specified key.

@param accountReservationKey
the reservation key
@return the reserved account, or {@code null} if none is found
504404
public MailAccount lookupUsedMailAccountForCurrentThread(final String accountReservationKey) {
		lock.lock();
		try {
			Map<MailAccount, ThreadReservationKeyWrapper> usedAccountsForThread = filterValues(usedAccounts, new CurrentThreadWrapperPredicate());
			if (!usedAccountsForThread.isEmpty()) {
				for (Entry<MailAccount, ThreadReservationKeyWrapper> entry : usedAccountsForThread.entrySet()) {
					if (entry.getValue().accountReservationKey.equals(accountReservationKey)) {
						return entry.getKey();
					}
				}
			}

			return null;
		} finally {
			lock.unlock();
		}
	}
281917
public Redemptions getCouponRedemptionsByAccount(final String accountCode) {
        return doGET(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + Redemption.REDEMPTIONS_RESOURCE,
                Redemptions.class, new QueryParams());
    }
193963
@VisibleForTesting
	BigInteger memcacheSafeGet(final String memcacheKey)
	{
		Preconditions.checkNotNull(memcacheKey);

		BigInteger cachedCounterCount;
		try
		{
			cachedCounterCount = (BigInteger) memcacheService.get(memcacheKey);
		}
		catch (MemcacheServiceException mse)
		{
			// Do nothing. This merely indicates that memcache was unreachable, which is fine. If it's
			// unreachable, there's likely nothing in the cache anyway, but in any case there's nothing we can do here.
			cachedCounterCount = null;
		}
		return cachedCounterCount;
	}
1369702
@Override
	public <T> T get(final String key, DomainResolver resolver) {
		return get(key, null, resolver);
	}
926367
public AccountAcquisition getAccountAcquisition(final String accountCode) {
        final String path = Account.ACCOUNT_RESOURCE + "/" + accountCode + AccountAcquisition.ACCOUNT_ACQUISITION_RESOURCE;
        return doGET(path, AccountAcquisition.class);
    }
87622
public Set<MailAccount> getReservedMailAccountsForCurrentThread() {
		lock.lock();
		try {
			Map<MailAccount, ThreadReservationKeyWrapper> accountsForThread = filterValues(usedAccounts, new CurrentThreadWrapperPredicate());
			return ImmutableSet.copyOf(accountsForThread.keySet());
		} finally {
			lock.unlock();
		}
	}
1059039
def get_account(self, account):
        
        selector = account.to_selector()
        resp = self.request_single('GetAccount', {'account': selector})
        return zobjects.Account.from_dict(resp)
920294
public  MaterialAccount getAccountAtCurrentPosition(int position) {

        if (position < 0 || position >= accountManager.size())
            throw  new RuntimeException("Account Index Overflow");

        return findAccountNumber(position);
    }
827367
public com.ibm.websphere.cache.CacheEntry getCacheEntry(Object key) {
        return super.common_getCacheEntry(key);
	}
605612
public Principal getAuthenticationPrincipal(final String ticketGrantingTicketId) {
        try {
            val ticketGrantingTicket = this.centralAuthenticationService.getTicket(ticketGrantingTicketId, TicketGrantingTicket.class);
            return ticketGrantingTicket.getAuthentication().getPrincipal();
        } catch (final InvalidTicketException e) {
            LOGGER.warn("Ticket-granting ticket [{}] cannot be found in the ticket registry.", e.getMessage());
            LOGGER.debug(e.getMessage(), e);
        }
        LOGGER.warn("In the absence of valid ticket-granting ticket, the authentication principal cannot be determined. Returning [{}]", NullPrincipal.class.getSimpleName());
        return NullPrincipal.getInstance();
    }
856873
public Date getDateOfOlderSmsByApplicationAndAccount(final Application application, final Account account) {
		final Criteria criteria = getCurrentSession().createCriteria(Sms.class);
		criteria.add(Restrictions.eq(Sms.PROP_APP, application));
		criteria.add(Restrictions.eq(Sms.PROP_ACC, account));
		
		criteria.setProjection(Projections.min(Sms.PROP_DATE));
		return (Date) criteria.uniqueResult();
	}
1370648
public String getAccountEmail() {
    if (emails != null) {
      for (final Entry<String, String> entry : emails.entrySet()) {
        if (entry.getValue().equals("account")) {
          return entry.getKey();
        }
      }
    }
    return null;
  }
1281339
public PropertyOwner retrieveUserProperties(String strRegistrationKey)
    {
        if (this.getDefaultApplication() != null)
            if (this.getDefaultApplication() != null)
                return this.getDefaultApplication().retrieveUserProperties(strRegistrationKey);
        return null;
    }
430980
public AccountNotes getAccountNotes(final String accountCode) {
        return doGET(Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + AccountNotes.ACCOUNT_NOTES_RESOURCE,
                     AccountNotes.class, new QueryParams());
    }
636894
@RequestMapping(value = "", method = RequestMethod.GET)
    public Resources<Account> getAccounts() {
        return Resources.of(
                accountService.getAccounts(),
                uri(on(getClass()).getAccounts())
        )
                .with(Link.CREATE, uri(on(AccountController.class).getCreationForm()))
                .with("_actions", uri(on(AccountController.class).getAccountMgtActions()))
                ;
    }
1351471
public PropertyOwner retrieveUserProperties(String strRegistrationKey)
    {
        if (this.getApplication() != null)
            return this.getApplication().retrieveUserProperties(strRegistrationKey);        // Override this for functionality
        return null;
    }
1248112
@RequestMapping(value = "{accountId}", method = RequestMethod.DELETE)
    public Ack deleteAccount(@PathVariable ID accountId) {
        return accountService.deleteAccount(accountId);
    }