Reads in the Configuration, looking for various knowledge models.
If not found, it falls back to the super class (V1CompositeMarshaller).

@param config the Configuration
@return the Model
163982
@Override
    public Model read(Configuration config) {
        String name = config.getName();
        Descriptor desc = getDescriptor();
        if (CHANNELS.equals(name)) {
            return new V1ChannelsModel(config, desc);
        } else if (CHANNEL.equals(name)) {
            return new V1ChannelModel(config, desc);
        } else if (LISTENERS.equals(name)) {
            return new V1ListenersModel(config, desc);
        } else if (LISTENER.equals(name)) {
            return new V1ListenerModel(config, desc);
        } else if (LOGGERS.equals(name)) {
            return new V1LoggersModel(config, desc);
        } else if (LOGGER.equals(name)) {
            return new V1LoggerModel(config, desc);
        } else if (MANIFEST.equals(name)) {
            return new V1ManifestModel(config, desc);
        } else if (CONTAINER.equals(name)) {
            return new V1ContainerModel(config, desc);
        } else if (RESOURCES.equals(name)) {
            return new V1ResourcesModel(config, desc);
        } else if (RESOURCE.equals(name)) {
            return new V1ResourceModel(config, desc);
        } else if (RESOURCE_DETAIL.equals(name)) {
            return new V1ResourceDetailModel(config, desc);
        } else if (OPERATIONS.equals(name)) {
            return new V1OperationsModel(config, desc);
        } else if (GLOBALS.equals(name)) {
            return new V1GlobalsModel(config, desc);
        } else if (GLOBAL.equals(name)) {
            return new V1GlobalModel(config, desc);
        } else if (INPUTS.equals(name)) {
            return new V1InputsModel(config, desc);
        } else if (INPUT.equals(name)) {
            return new V1InputModel(config, desc);
        } else if (OUTPUTS.equals(name)) {
            return new V1OutputsModel(config, desc);
        } else if (OUTPUT.equals(name)) {
            return new V1OutputModel(config, desc);
        } else if (FAULTS.equals(name)) {
            return new V1FaultsModel(config, desc);
        } else if (FAULT.equals(name)) {
            return new V1FaultModel(config, desc);
        } else if (PROPERTIES.equals(name)) {
            return new V1PropertiesModel(config, desc);
        } else if (PROPERTY.equals(name)) {
            return new V1PropertyModel(config, desc);
        } else if (USER_GROUP_CALLBACK.equals(name)) {
            return new V1UserGroupCallbackModel(config, desc);
        } else if (WORK_ITEM_HANDLERS.equals(name)) {
            return new V1WorkItemHandlersModel(config, desc);
        } else if (WORK_ITEM_HANDLER.equals(name)) {
            return new V1WorkItemHandlerModel(config, desc);
        }
        return super.read(config);
    }
1289184
public static Properties readInternalConfiguration()
    {
        //init properties
        Properties properties=new Properties();
        
        //get class loader
        ClassLoader classLoader=ReflectionHelper.getThreadContextClassLoader();

        //load internal properties
        InputStream inputStream=classLoader.getResourceAsStream("org/fax4j/"+LibraryConfigurationLoader.CONFIGURATION_FILE_NAME);
        LibraryConfigurationLoader.loadProperties(properties,inputStream,true);

        return properties;
    }
648740
public static LayerableConfig imports(Configurer configurer)
    {
        Check.notNull(configurer);

        return imports(configurer.getRoot());
    }
650923
public function getPage( $config = [] ) {

		$modelClass	= static::$modelClass;
		$modelTable	= $this->getModelTable();

	    $sort = new Sort([
	        'attributes' => [
				'id' => [
					'asc' => [ "$modelTable.id" => SORT_ASC ],
					'desc' => [ "$modelTable.id" => SORT_DESC ],
					'default' => SORT_DESC,
					'label' => 'Id'
				],
	            'sdate' => [
	                'asc' => [ "$modelTable.submittedAt" => SORT_ASC ],
	                'desc' => [ "$modelTable.submittedAt" => SORT_DESC ],
	                'default' => SORT_DESC,
	                'label' => 'sdate',
	            ]
	        ],
	        'defaultOrder' => [
	        	'sdate' => SORT_DESC
	        ]
	    ]);

		if( !isset( $config[ 'sort' ] ) ) {

			$config[ 'sort' ] = $sort;
		}

		if( !isset( $config[ 'search-col' ] ) ) {

			$config[ 'search-col' ] = 'submittedAt';
		}

		return parent::findPage( $config );
	}
1220987
@Override
    public Model read(Configuration config) {
        String name = config.getName();
        Descriptor desc = getDescriptor();
        if (MANIFEST.equals(name)) {
            return new V2ManifestModel(config, desc);
        } else if (REMOTE_JMS.equals(name)) {
            return new V2RemoteJmsModel(config, desc);
        } else if (REMOTE_REST.equals(name)) {
            return new V2RemoteRestModel(config, desc);
        } else if (EXTRA_JAXB_CLASSES.equals(name)) {
            return new V2ExtraJaxbClassesModel(config, desc);
        } else if (EXTRA_JAXB_CLASS.equals(name)) {
            return new V2ExtraJaxbClassModel(config, desc);
        } else if (INPUT.equals(name)) {
            return new V2InputModel(config, desc);
        } else if (PROPERTIES.equals(name)) {
            return new V2PropertiesModel(config, desc);
        }
        return super.read(config);
    }
477822
public void load(Configuration config)
	{
		String comment = "";
		for (String c : comments)
		{
			if (MalisisCore.isClient())
				comment += I18n.format(c) + " ";
			else
				comment += c + " ";
		}

		property = config.get(category, key, writeValue(defaultValue), comment, type);
		value = readValue(property.getString());
		if (value == null)
			throw new NullPointerException("readPropertyValue should not return null!");
	}
13443
public synchronized static CFMLEngine getInstance(final ServletConfig config) throws ServletException {

	if (singelton != null) {
	    if (factory == null) factory = singelton.getCFMLEngineFactory(); // not sure if this ever is done, but it does not hurt
	    return singelton;
	}

	if (factory == null) factory = new CFMLEngineFactory(config);

	// read init param from config
	factory.readInitParam(config);

	factory.initEngineIfNecessary();
	singelton.addServletConfig(config);

	// add listener for update
	// factory.addListener(singelton);
	return singelton;
    }
1193518
public CentralDogmaBeanConfigBuilder merge(CentralDogmaBeanConfig config) {
        config.project().ifPresent(this::project);
        config.repository().ifPresent(this::repository);
        config.path().ifPresent(this::path);
        config.jsonPath().ifPresent(this::jsonPath);
        return this;
    }
768993
public ConfigSettings read()
	{

		ConfigSettings config = new ConfigSettings(ConfigEnum.IMPORT);

		String name;
		Node node;
		NodeList list = root.getChildNodes();

		int length = list.getLength();
		for (int i = 0; i < length; i++) {
			node = list.item(i);

			name = node.getNodeName().toUpperCase();

			if (name.equals(SECTION_MODE)) {
				parseModeConfig(node, config);
			}
			else if (name.equals(SECTION_EXTERNALS)) {
				parseExternalsConfig(node, config);
			}
			else if (name.equals(SECTION_INPUT)) {
				parseInputConfig(node, config);
			}
			else if (name.equals(SECTION_OUTPUT)) {
				parseOutputConfig(node, config);
			}
			else if (name.equals(SECTION_CACHE)) {
				parseCacheConfig(node, config);
			}
			else if (name.equals(SECTION_LOGGING)) {
				parseLoggingConfig(node, config);
			}
			else if (name.equals(SECTION_DEBUG)) {
				parseDebugConfig(node, config);
			}
			else if (name.equals(SECTION_FILTER)) {
				parseFilterConfig(node, config);
			}
		}

		return config;
	}
999404
public static Config getFixedConfig(@Nonnull Map<String, String> config)
    {
        return getFixedConfig(new MapConfiguration(config));
    }
333282
public static int[] getConfigArr(VarSet vars, VarConfig config) {        
        IntArrayList a = new IntArrayList(config.getVars().calcNumConfigs());
        IntIter iter = getConfigIter(vars, config);
        while (iter.hasNext()) {
            a.add(iter.next());
        }
        return a.toNativeArray();
    }
919337
public static TopologyAPI.Config.Builder getConfigBuilder(Config config) {
    TopologyAPI.Config.Builder cBldr = TopologyAPI.Config.newBuilder();
    Set<String> apiVars = config.getApiVars();
    for (String key : config.keySet()) {
      if (key == null) {
        LOG.warning("ignore: null config key found");
        continue;
      }
      Object value = config.get(key);
      if (value == null) {
        LOG.warning("ignore: config key " + key + " has null value");
        continue;
      }
      TopologyAPI.Config.KeyValue.Builder b = TopologyAPI.Config.KeyValue.newBuilder();
      b.setKey(key);
      if (apiVars.contains(key)) {
        b.setType(TopologyAPI.ConfigValueType.STRING_VALUE);
        b.setValue(value.toString());
      } else {
        b.setType(TopologyAPI.ConfigValueType.JAVA_SERIALIZED_VALUE);
        b.setSerializedValue(ByteString.copyFrom(serialize(value)));
      }
      cBldr.addKvs(b);
    }

    return cBldr;
  }
22997
public static Map<String, Object> getInnerLayerConfigFromConfig(Map<String, Object> layerConfig, KerasLayerConfiguration conf)
            throws InvalidKerasConfigurationException {
        if (!layerConfig.containsKey(conf.getLAYER_FIELD_CONFIG()))
            throw new InvalidKerasConfigurationException("Field "
                    + conf.getLAYER_FIELD_CONFIG() + " missing from layer config");
        return (Map<String, Object>) layerConfig.get(conf.getLAYER_FIELD_CONFIG());
    }
192020
private OpenAPIImpl modelFromReader() {
        ClassLoader cl = getContextClassLoader();
        if (cl == null) {
            cl = OpenApiServletContextListener.class.getClassLoader();
        }
        return OpenApiProcessor.modelFromReader(config, cl);
    }
313359
public static Parameters fromConfig(ConfigParams config) {
		Parameters result = new Parameters();

		if (config == null || config.size() == 0)
			return result;

		for (Map.Entry<String, String> entry : config.entrySet()) {
			result.put(entry.getKey(), entry.getValue());
		}

		return result;
	}
193351
public static function getInstance(Configuration $config = null)
    {
        if (!self::$instance) {
            self::$instance = new self($config);
        }

        return self::$instance;
    }
256842
public static ContextInfo fromConfig(ConfigParams config) {
		ContextInfo result = new ContextInfo();
		result.configure(config);
		return result;
	}