private static String codegenRSLRootClass(String base,String rootClassName){
  String lineSep=System.getProperty("line.separator");
  String[] codePieces=new String[]{"package",lineSep,"{",lineSep,lineSep,"import flash.display.Sprite;",lineSep,"import flash.system.Security;",lineSep,lineSep,"/**",lineSep," *  @private",lineSep," */",lineSep,"[ExcludeClass]",lineSep,"public class ",rootClassName,lineSep,"    extends ",base,lineSep,"{",lineSep,"    public function ",rootClassName,"()",lineSep,"    {",lineSep,"        super();",lineSep,"    }",lineSep,lineSep,"}",lineSep,lineSep,"}",lineSep};
  return StringJoiner.join(codePieces,null);
}

private static String codegenRSLRootClass ( String base , String rootClassName ) { String lineSep = System . getProperty ( "line.separator" ) ; String [ ] codePieces = new String [ ] { "package" , lineSep , "{" , lineSep , lineSep , "import flash.display.Sprite;" , lineSep , "import flash.system.Security;" , lineSep , lineSep , "/**" , lineSep , " *  @private" , lineSep , " */" , lineSep , "[ExcludeClass]" , lineSep , "public class " , rootClassName , lineSep , "    extends " , base , lineSep , "{" , lineSep , "    public function " , rootClassName , "()" , lineSep , "    {" , lineSep , "        super();" , lineSep , "    }" , lineSep , lineSep , "}" , lineSep , lineSep , "}" , lineSep } ; return StringJoiner . join ( codePieces , null ) ; }
generate a root class for an rsl with wrapper calls to security . allowdomain ( ) and security . allowinsecuredomain ( ) . the purpose is to allow callers to trust the rsl swfs in the same way they can trust an application swf .
