modularization of checks for non deploying container

added HTTPSServlet
removed port method