protected Resources() {
        this.bagFields = new HashSet<Field>();
        for (Field f : getClass().getFields()) {
            if (Modifier.isPublic(f.getModifiers()) && ResourceBag.class.isAssignableFrom(f.getType())) {
                this.bagFields.add(f);
            }
        }
    }