forked from loafle/openapi-generator-original
* fix resources management * remove obselete if statement * throw exception when body is null * prevent potentional nullpointerexception * use valueOf instead of constructor * remove duplicated code * avoid unclosed resources * remove redundant key * fix broken tests * fix sonar issues * fix tests * add Veamly as a company using openAPI generator * revert back if statement to explicitly express the intention behind it