code backup. There is bug inside buildElements() for securityRuleList