code: @Override
     public void writeImport(Definition def, Writer out) throws IOException
     {
        out.write("package " + def.getRaPackage() + ";\n\n");
        if (def.isAdminObjectImplRaAssociation())
        {
           out.write("import java.io.Serializable;\n\n");
           out.write("import javax.naming.NamingException;\n");
           out.write("import javax.naming.Reference;\n\n");
           out.write("import javax.resource.Referenceable;\n");
        }
        if (def.isUseAnnotation())
        {
           out.write("import javax.resource.spi.AdministeredObject;\n");
           out.write("import javax.resource.spi.ConfigProperty;\n");
        }
        if (def.isAdminObjectImplRaAssociation())
        {
           out.write("import javax.resource.spi.ResourceAdapter;\n");
           out.write("import javax.resource.spi.ResourceAdapterAssociation;\n");
        }
        writeEol(out);
     }
docs: Output class import
  
  @param def definition
  @param out Writer
  @throws IOException ioException