public static JCorsConfig load() {

		log.info("Initializing JCors...");
		InputStream fileStream = findFileInClasspath(CONFIG_FILE_NAME);

		JCorsConfig config = new JCorsConfig();

		if (fileStream != null) {
			config = loadFromFileStream(fileStream);
			Constraint.ensureNotNull(config, "It was not possible to get a valid configuration instance");
			log.info(String.format("Configuration loaded from classpath file '%s'", CONFIG_FILE_NAME));
		} else {
			log.info(String.format("No file '%s' found in classpath. Using default configurations.", CONFIG_FILE_NAME));
		}

		log.info(config);
		return config;

	}
public static JCorsConfig load ( ) { log . info ( "Initializing JCors..." ) ; InputStream fileStream = findFileInClasspath ( CONFIG_FILE_NAME ) ; JCorsConfig config = new JCorsConfig ( ) ; if ( fileStream != null ) { config = loadFromFileStream ( fileStream ) ; Constraint . ensureNotNull ( config , "It was not possible to get a valid configuration instance" ) ; log . info ( String . format ( "Configuration loaded from classpath file '%s'" , CONFIG_FILE_NAME ) ) ; } else { log . info ( String . format ( "No file '%s' found in classpath. Using default configurations." , CONFIG_FILE_NAME ) ) ; } log . info ( config ) ; return config ; }
Loads a configuration from jcors.xml in classpath. If this file is not found, uses a default configuration

@return