|| f.getType().isAssignableFrom(DtoContainer.class)) {
return true;
}
if (!ignoreExclude) {
Exclude exclude = f.getAnnotation(Exclude.class);
// if exclude is neither EXPORT nor IMPORT, the field is always skipped
// if exclude is EXPORT then input fields are still included
// if exclude is IMPORT then output fields are still included
if (exclude != null) {
ExcludeType[] types = exclude.value();
ExcludeType skipIfPresent = (forInput ? ExcludeType.IMPORT : ExcludeType.EXPORT);
for (int i = 0; i < types.length; i++) {
if (skipIfPresent.equals(types[i]))
return true;
}