code: @Override
     public void extensionStart(TestClass tc) throws Exception
     {
        List<ScriptText> scripts = new ArrayList<ScriptText>();
        int key = 1;
        
        BMRules rules = tc.getAnnotation(BMRules.class);
        if (rules != null)
        {
           for (BMRule rule : rules.value())
           {
              scripts.add(createScriptText(key, rule));
              key++;
           }
        }
  
        BMRule rule = tc.getAnnotation(BMRule.class);
        if (rule != null)
        {
           scripts.add(createScriptText(key, rule));
        }
  
        if (!scripts.isEmpty())
        {
           Submit submit = new Submit();
           String result = submit.addScripts(scripts);
        }
     }
docs: {@inheritDoc}