Gets a consumer using its' id.

@param id
@return
556437
synchronized ConsumerSessionImpl get(long id)
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "get", new Long(id));

    ConsumerSessionImpl consumer  = null ;
    
    if( _messageProcessor.isStarted() )
    {
      consumer = (ConsumerSessionImpl) _consumers.get(new Long(id));
    }

    if (tc.isEntryEnabled())
      SibTr.exit(tc, "get", consumer);

    return consumer;
  }
432486
public T getProvider(final String id) {
        return (T) beanFactory.getBean(providerFactory.beanName(id));
    }
1093316
public <C extends Contextual<I>, I> C getContextual(String id) {
        return this.<C, I>getContextual(new StringBeanIdentifier(id));
    }
634700
public User getUserById(int id) {
		for (User u : users)
			if (u.getId() == id)
				return u;
		return null;
	}
377046
public Integer getNextIDSeq(final String id) {
        Validate.notNull(id, "ID cannot be null");
        Integer count = this.idCounts.get(id);
        if (count == null) {
            count = Integer.valueOf(1);
        }
        return count;
    }
145832
public RunT getBuild(String id) {
        for (RunT r : _getRuns().values()) {
            if (r.getId().equals(id))
                return r;
        }
        return null;
    }
946538
@Nullable
    public static StreamCipherProvider getProvider(@NotNull final String id) {
        for (final StreamCipherProvider provider : ServiceLoader.load(StreamCipherProvider.class)) {
            if (id.equalsIgnoreCase(provider.getId())) {
                return provider;
            }
        }
        return null;
    }
62495
public static IReaction getReactionByReactionID(IReactionSet reactionSet, String id) {
        Iterable<IReaction> reactionIter = reactionSet.reactions();
        for (IReaction reaction : reactionIter) {
            if (reaction.getID() != null && reaction.getID().equals(id)) {
                return reaction;
            }
        }
        return null;
    }
1169671
public Object getObjectWithId( IdKey id ) {
        if ( null != idToObject ) {
            return idToObject.get( id );
        }
        return null;
    }
642002
public <P extends ParaObject> P findById(String id) {
		MultivaluedMap<String, String> params = new MultivaluedHashMap<>();
		params.putSingle(Config._ID, id);
		List<P> list = getItems(find("id", params));
		return list.isEmpty() ? null : list.get(0);
	}
1036017
public T getDynamic(String id) {
        // by ID
        for (T t : data)
            if(t.getDescriptor().getId().equals(id))
                return t;

        // by position
        try {
            return data.get(Integer.parseInt(id));
        } catch (NumberFormatException e) {
            // fall through
        }

        return null;
    }
771769
public Server getServerById(final String id) {
        for (Server server : SERVERS) {
            if (server.getId().equals(id)) {
                return server;
            }
        }

        return null;
    }
564260
public Cat get(Integer id) {
        if (DB.isEmpty()) {
            addExampleCats();
        }

        return DB.get(id);
    }
387626
public E getById(String id) {
        if (id == null) {
            for (E element : this) {
                if (element != null && element.getId() == null) {
                    return element;
                }
            }
        } else {
            for (E element : this) {
                if (element != null && id.equals(element.getId())) {
                    return element;
                }
            }
        }
        return null;
    }
238175
public Note get(long id)
	{
		SingleElementHandler<Note> noteHandler = new SingleElementHandler<>();
		try
		{
			osm.makeAuthenticatedRequest(NOTES + "/" + id, null, new NotesParser(noteHandler));
		}
		catch (OsmNotFoundException e)
		{
			return null;
		}
		return noteHandler.get();
	}
154388
public synchronized SICoreConnection get(int id) {
        if (tc.isEntryEnabled())
            SibTr.entry(tc, "get", "" + id);
        SICoreConnection retValue = (SICoreConnection) map.get(id);
        if (tc.isEntryEnabled())
            SibTr.exit(tc, "get", retValue);
        return retValue;
    }
1122599
public Optional<DTO> get(String id) {
        return Optional.ofNullable(db.findOneById(new ObjectId(id)));
    }