code: public static void initEnvironment() {
  		// init logging system if not specified
  		if (System.getProperty("org.apache.commons.logging.Log") == null)
  			System.setProperty("org.apache.commons.logging.Log", "net.lecousin.framework.log.bridges.ApacheCommonsLogging");
  		
  		// register protocols
  		String protocols = System.getProperty("java.protocol.handler.pkgs");
  		if (protocols == null) protocols = "";
  		if (!protocols.contains("net.lecousin.framework.protocols")) {
  			if (protocols.length() > 0) protocols += "|";
  			protocols += "net.lecousin.framework.protocols";
  			System.setProperty("java.protocol.handler.pkgs", protocols);
  		}
  	}
docs: Initialize properties.