docs: String getDefaultInstancesXML(String alias) throws Exception {
          StringBuilder xml = new StringBuilder(200).append("\r\n<server>\r\n");
  
          String extendsPid = (String) config.get(SOURCE_PID);
  
          if ((extendsPid != null) && (extendsPid.startsWith("com.ibm.ws.jca.resourceAdapter"))) {
              // com.ibm.ws.jca.resourceAdapter[default-0]
              String id = getIDFromSupertype(extendsPid, 31);
              xml.append(" <resourceAdapter id=\"").append(id).append("\">\r\n");
              xml.append("  <").append(alias).append("/>\r\n");
              xml.append(" </resourceAdapter>\r\n");
          } else if (embeddedRAConfig != null && alias != null) {
              String appId;
              String appElementName;
              if (extendsPid != null && extendsPid.startsWith("com.ibm.ws.app.manager.earappcfg")) {
                  appId = getIDFromSupertype(extendsPid, 33);
                  appElementName = "enterpriseApplication";
              } else {
                  String topLevelConfigId = (String) config.get("config.id");
                  appId = topLevelConfigId.substring(23, topLevelConfigId.length() - 1);
                  appElementName = "application";
              }
              String raId = (String) embeddedRAConfig.get("id");
              xml.append(" <").append(appElementName).append(" id=\"").append(appId).append("\">\r\n");
              xml.append("  <resourceAdapter id=\"").append(raId).append("\">\r\n");
              xml.append("   <").append(alias).append("/>\r\n");
              xml.append("  </resourceAdapter>\r\n");
              xml.append(" </").append(appElementName).append(">\r\n");
          } else {
              hasConfig = false;
              return null;
          }
  
          xml.append("</server>");
          return xml.toString();
      }