RESTWS-721: Fix modules producing ref errors due to swagger exclusion (#343)
* RESTWS-720 Diagnose the fault as a nullPointerException and add a test to confirm.
Test simply calls the lower level method that throws the exception so
will pass once the fix is implemented.
Will also test for future regressions of the same issue.
* RESTWS-721 Add a test to fail at calling the methods necessary for correct definition generation.
* RESTWS-721 Remove legacy code to enable definition generation for unrelated resources.
Code appears to have no function due to the interface type on the parameter.
* Add missing license headers
* Fix a caching issue when running multiple tests together.