// add view transformation
Class type = finalResource.getEntityClass();
if (type != null) {
ViewTransformation transformation = StructrApp.getConfiguration().getViewTransformation(type, propertyView.get(securityContext));
if (transformation != null) {
transformedResource = transformedResource.tryCombineWith(new TransformationResource(securityContext, transformation));
}
}