PLF-4022 : Refactor the extensions management script to reuse it in any application server (Tomcat and Jboss for now)