private static void writeNode( Connection con, PubsubRecordData record ) throws SQLException
    {
        PreparedStatement pstmt = null;
        try
        {
            pstmt = con.prepareStatement("INSERT INTO ofPubsubNode (serviceID, nodeID, leaf, creationDate, modificationDate, " +
                                             "parent, deliverPayloads, maxPayloadSize, persistItems, maxItems, " +
                                             "notifyConfigChanges, notifyDelete, notifyRetract, presenceBased, " +
                                             "sendItemSubscribe, publisherModel, subscriptionEnabled, configSubscription, " +
                                             "accessModel, payloadType, bodyXSLT, dataformXSLT, creator, description, " +
                                             "language, name, replyPolicy, associationPolicy, maxLeafNodes) " +
                                             "VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)" );
            pstmt.setString(1, record.serviceID);
            pstmt.setString(2, record.nodeID);
            pstmt.setInt(3, record.leaf);
            pstmt.setString(4, record.creationDate);
            pstmt.setString(5, record.modificationDate);
            pstmt.setString(6, record.parent);
            pstmt.setInt(7, record.deliverPayloads);
            pstmt.setInt(8, record.maxPayloadSize);
            pstmt.setInt(9, record.persistPublishedItems);
            pstmt.setInt(10, record.maxPublishedItems);
            pstmt.setInt(11, record.notifiedOfConfigChanges);
            pstmt.setInt(12, record.notifiedOfDelete);
            pstmt.setInt(13, record.notifiedOfRetract);
            pstmt.setInt(14, record.presenceBasedDelivery);
            pstmt.setInt(15, record.sendItemsubscribe);
            pstmt.setString(16, record.publisherModel);
            pstmt.setInt(17, record.subscriptionEnabled);
            pstmt.setInt(18, record.subscriptionConfigurationRequired);
            pstmt.setString(19, record.accessModel);
            pstmt.setString(20, record.payloadType);
            pstmt.setString(21, record.bodyXSLT);
            pstmt.setString(22, record.dataformXSLT);
            pstmt.setString(23, record.creator);
            pstmt.setString(24, record.description);
            pstmt.setString(25, record.language);
            pstmt.setString(26, record.name);
            pstmt.setString(27, record.replyPolicy);
            pstmt.setString(28, record.associationPolicy);
            pstmt.setInt(29, record.maxLeafNodes);
            pstmt.executeUpdate();
        }
        finally
        {
            DbConnectionManager.fastcloseStmt( pstmt );
        }
    }
Creates appropriate database entries for each pubsub record
@param newRecords A collection of pubsub representations (can be empty, cannot be null).
xmppserver/src/main/java/org/jivesoftware/database/bugfix/OF1515.java