Fixed /generateAndPublish Endpoint when the application is started using application.properties
Handled NullPointerException if generate context path is null.
Modified the field name generate.server.path to generate.server.contextpath in configuration file.