added conditional to not modify server.xml