public void loadFieldsXML(Node node) {
   int nr = XMLHandler.countNodes(node, BaseLogTable.XML_TAG);
   for (int i = 0; i < nr; i++) {
     Node fieldNode = XMLHandler.getSubNodeByNr(node, BaseLogTable.XML_TAG, i);
     String id = XMLHandler.getTagValue(fieldNode, "id");
     LogTableField field = findField(id);
     if (field == null && i < fields.size()) {
       field = fields.get(i); // backward compatible until we go GA
     }
     if (field != null) {
       field.setFieldName(XMLHandler.getTagValue(fieldNode, "name"));
       field.setEnabled("Y".equalsIgnoreCase(XMLHandler.getTagValue(fieldNode, "enabled")));
     }
   }
 }
 public void loadFromRepository(RepositoryAttributeInterface attributeInterface)
     throws KettleException {
   String connectionNameFromRepository =
       attributeInterface.getAttributeString(getLogTableCode() + PROP_LOG_TABLE_CONNECTION_NAME);
   if (connectionNameFromRepository != null) {
     connectionName = connectionNameFromRepository;
   }
   String schemaNameFromRepository =
       attributeInterface.getAttributeString(getLogTableCode() + PROP_LOG_TABLE_SCHEMA_NAME);
   if (schemaNameFromRepository != null) {
     schemaName = schemaNameFromRepository;
   }
   String tableNameFromRepository =
       attributeInterface.getAttributeString(getLogTableCode() + PROP_LOG_TABLE_TABLE_NAME);
   if (tableNameFromRepository != null) {
     tableName = tableNameFromRepository;
   }
   timeoutInDays =
       attributeInterface.getAttributeString(getLogTableCode() + PROP_LOG_TABLE_TIMEOUT_DAYS);
   for (int i = 0; i < getFields().size(); i++) {
     String id =
         attributeInterface.getAttributeString(getLogTableCode() + PROP_LOG_TABLE_FIELD_ID + i);
     // Only read further if the ID is available.
     // For backward compatibility, this might not be provided yet!
     //
     if (id != null) {
       LogTableField field = findField(id);
       if (field != null) {
         field.setFieldName(
             attributeInterface.getAttributeString(
                 getLogTableCode() + PROP_LOG_TABLE_FIELD_NAME + i));
         field.setEnabled(
             attributeInterface.getAttributeBoolean(
                 getLogTableCode() + PROP_LOG_TABLE_FIELD_ENABLED + i));
         if (field.isSubjectAllowed()) {
           field.setSubject(
               attributeInterface.getAttributeString(
                   getLogTableCode() + PROP_LOG_TABLE_FIELD_SUBJECT + i));
         }
       }
     }
   }
 }