private static void addParameter(INIFile file, String line, INISection section){

        String[] data = line.split("=");

        String name = data[0];
        String value = data[1];

        INIParameterType type = INIParameterType.UNKNOWN;

        if(StringParser.isBoolean(value)){
            type = INIParameterType.BOOL;
        }
        if(StringParser.isInteger(value)){
            type = INIParameterType.INT;
        }
        if(StringParser.isDouble(value)){
            type = INIParameterType.DECIMAL;
        }
        if(StringParser.isString(value)){
            type = INIParameterType.STRING;
        }

        if(type == INIParameterType.UNKNOWN) {
            Debug.error("'" + line + "' references UNKNOWN datatype. Only INTs, BOOLs, DECIMALs(double) and Strings (in speech marks) are supported.");
        }

        INIParameter param = new INIParameter(name, value, type);
        section.addParameter(param);

    }