public Entity getEntity(CogaenId entityId) {
		Entity entity = this.entitiesMap.get(entityId);
		
		if (entity == null) {
			throw new RuntimeException("unknown entity " + entityId);
		}
		
		return entity;
	}