}
// 2) create namespace entries in the reasoner_program_namespaces table
PreparedStatement insertNamespaces = getPreparedStatement("programs.add_ns");
synchronized (insertNamespaces) {
insertNamespaces.clearBatch();
for(Map.Entry<String,String> entry : program.getNamespaces().entrySet()) {
insertNamespaces.clearParameters();
insertNamespaces.setLong(1, program.getId());
insertNamespaces.setString(2,entry.getKey());
insertNamespaces.setString(3,entry.getValue());