[COOK-3379] Generate keystore and restart tomcat only when sources change