code: public Entity getEntity(String id) {
          Entity e = getEntities().get(id);
          if (e == null) {
              return null;
          }
          return e;
      }
docs: Return the entity of the given id
  
  @param id Entity id
  @return The entity