code: @Override
     public void writeImport(Definition def, Writer out) throws IOException
     {
        out.write("package " + def.getRaPackage() + ";\n\n");
        out.write("import java.io.PrintWriter;\n");
        out.write("import java.util.Iterator;\n");
        out.write("import java.util.Set;\n\n");
        importLogging(def, out);
  
        out.write("import javax.resource.ResourceException;\n");
  
        if (def.getMcfDefs().get(getNumOfMcf()).isUseCciConnection())
        {
           out.write("import javax.resource.cci.Connection;\n");
           out.write("import javax.resource.cci.ConnectionFactory;\n");
        }
  
        if (def.isUseAnnotation())
        {
           importConfigProperty(def, out);
           out.write("import javax.resource.spi.ConnectionDefinition;\n");
        }
        out.write("import javax.resource.spi.ConnectionManager;\n");
        out.write("import javax.resource.spi.ConnectionRequestInfo;\n");
        out.write("import javax.resource.spi.ManagedConnection;\n");
        out.write("import javax.resource.spi.ManagedConnectionFactory;\n");
        out.write("import javax.resource.spi.ResourceAdapter;\n");
        out.write("import javax.resource.spi.ResourceAdapterAssociation;\n\n");
        out.write("import javax.security.auth.Subject;\n\n");
     }
docs: Output class import
  
  @param def definition
  @param out Writer
  @throws IOException ioException