Remove trailing whitespace from bash script
Limit Servlet Listener registration

Limit Servlet Listener registration to the specific supported types.

Issue: #54112999