code: private void writeInbound(Definition def, Writer out, int indent) throws IOException
     {
        writeIndent(out, indent);
        out.write("<inbound-resourceadapter>");
        writeEol(out);
        writeIndent(out, indent + 1);
        out.write("<messageadapter>");
        writeEol(out);
        writeIndent(out, indent + 2);
        out.write("<messagelistener>");
        writeEol(out);
        writeIndent(out, indent + 3);
        if (!def.isDefaultPackageInbound())
        {
           out.write("<messagelistener-type>" + def.getMlClass() + "</messagelistener-type>");
        }
        else
        {
           out.write("<messagelistener-type>" + def.getRaPackage() +
                 ".inflow." + def.getMlClass() + "</messagelistener-type>");
        }
        writeEol(out);
        writeIndent(out, indent + 3);
        out.write("<activationspec>");
        writeEol(out);
        writeIndent(out, indent + 4);
        out.write("<activationspec-class>" + def.getRaPackage() +
              ".inflow." + def.getAsClass() + "</activationspec-class>");
        writeEol(out);
  
        writeAsConfigPropsXml(def.getAsConfigProps(), out, indent + 4);
        writeIndent(out, indent + 3);
        out.write("</activationspec>");
        writeEol(out);
        writeIndent(out, indent + 2);
        out.write("</messagelistener>");
        writeEol(out);
        writeIndent(out, indent + 1);
        out.write("</messageadapter>");
        writeEol(out);
        writeIndent(out, indent);
        out.write("</inbound-resourceadapter>");
        writeEol(out);
     }
docs: Output inbound xml part
  
  @param def    definition
  @param out    Writer
  @param indent space number
  @throws IOException ioException