It is required if you want to access the model fields directly (e.g. 
call a method of the underlying model). Why should you not be able to 
store the model at all? For the persisting itself, only the method 
toOpenEngSBModelEntries is required, which is implemented by this class. 
The problem is: I don't know if there are situations where you want to 
access the underlying model or if you only need model function access.

Am 2013-08-06 10:45, schrieb Andreas Pieber:
>> +        }
>> +        return new ModelWrapper((OpenEngSBModel) model);
>> +    }
>> +
>> +    /**
>> +     * Returns true if the given class is a model class, returns false if not.
>> +     */
>> +    public static boolean isModel(Class<?> clazz) {
>> +        return OpenEngSBModel.class.isAssignableFrom(clazz);
>> +    }
>> +
>> +    /**
>> +     * Returns the underlying model object.
>> +     */
>> +    public OpenEngSBModel getUnderlyingModel() {
>> +        return model;
> is this really required? Otherwise u wouldnt be able to store the model at all
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/openengsb/openengsb/pull/853/files#r5599218
>