adding handling for api error messages in java-jaxrs template
Merge pull request #51 from spatex/master

fixes for error messages in Java/JaxRS generated code