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;
	}
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 ; }
Creates new Parameters from ConfigMap object.

@param config a ConfigParams that contain parameters.
@return a new Parameters object.

@see ConfigParams