private static boolean hasRootNode( Connection con, String serviceID ) throws SQLException
    {
        PreparedStatement pstmt = null;
        ResultSet rs = null;
        try
        {
            pstmt = con.prepareStatement("SELECT serviceID FROM ofPubsubNode WHERE serviceID = ? AND nodeID = ? AND parent IS NULL" );
            pstmt.setString(1, serviceID);
            pstmt.setString(2, serviceID);
            rs = pstmt.executeQuery();
            return rs.next();
        }
        finally
        {
            DbConnectionManager.fastcloseStmt( rs, 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