Add multipart support to bennu-spring using bennu-core configuration settings
Check if domain object can be cast to target type before checking it is valid.