removed getPublicFieldsForModel, it is not used and should not be used, because its missing a check for the class containment