code: @Override
     public void writeImport(Definition def, Writer out) throws IOException
     {
        out.write("package " + def.getRaPackage() + ".inflow;\n\n");
        importLogging(def, out);
  
        if (def.isUseAnnotation())
        {
           out.write("import javax.resource.spi.Activation;");
           writeEol(out);
        }
        out.write("import javax.resource.spi.ActivationSpec;\n");
        if (def.isUseAnnotation())
        {
           importConfigProperty(def, out);
        }
        out.write("import javax.resource.spi.InvalidPropertyException;\n");
        out.write("import javax.resource.spi.ResourceAdapter;\n");
  
        if (def.isUseAnnotation())
        {
           for (int i = 0; i < getConfigProps(def).size(); i++)
           {
              if (getConfigProps(def).get(i).isRequired())
              {
                 out.write("import javax.validation.constraints.NotNull;\n");
                 break;
              }
           }
        }
     }
docs: Output class import
  
  @param def definition
  @param out Writer
  @throws IOException ioException