DropWizard Optional FormParam

While developing a microservice using DropWizard I encountered a scenario where I wanted to use the @FormParam annotation and wrap the form value within an Optional object. However I was dissapointed to find the functionality didnt work out of the box.

I thought this was a little strange as the @QueryParam annotation works with an Optional wrapper. To resolve the problem I decided to investigate the internals of Dropwizard and create something to do the job.

For those interested, the code is on my GitHub account.

I have also creted a Pull Request

Update: The Pull Request has since been merged into Master.