code: @Override
     public void writeImport(Definition def, Writer out) throws IOException
     {
        out.write("package " + def.getRaPackage() + ";\n\n");
  
        if (def.isSupportEis())
        {
           out.write("import java.io.IOException;\n");
        }
        out.write("import java.io.PrintWriter;\n");
  
        if (def.isSupportEis())
        {
           out.write("import java.net.Socket;\n");
        }
  
        out.write("import java.util.ArrayList;\n");
        out.write("import java.util.Collections;\n");
        out.write("import java.util.HashSet;\n");
        out.write("import java.util.List;\n");
        out.write("import java.util.Set;\n");
        importLogging(def, out);
        out.write("import javax.resource.NotSupportedException;\n");
        out.write("import javax.resource.ResourceException;\n");
        out.write("import javax.resource.spi.ConnectionEvent;\n");
        out.write("import javax.resource.spi.ConnectionEventListener;\n");
        out.write("import javax.resource.spi.ConnectionRequestInfo;\n");
        out.write("import javax.resource.spi.LocalTransaction;\n");
        out.write("import javax.resource.spi.ManagedConnection;\n");
        out.write("import javax.resource.spi.ManagedConnectionMetaData;\n\n");
        out.write("import javax.security.auth.Subject;\n");
        out.write("import javax.transaction.xa.XAResource;\n\n");
     }
docs: Output class import
  
  @param def definition
  @param out Writer
  @throws IOException ioException