public Model<?> fetchObject(Class<?> cls, long id) {
        try {
            Model<?> o = objects.get(cls).get(id).get();
            if (o == null)
                objects.get(cls).remove(id);
            return o;
        } catch (Exception e) {
            return null;
        }
    }