public static FileType getFileTypeByExtension(String extension) {
		for (FileType each : values()) {
			if (each.extension.equals(extension)) {
				return each;
			}
		}
		return UNKNOWN;
	}
Get file type by extension.

@param extension	extension
@return FileType which matches to extension. UNKNOWN otherwise.
ngrinder-controller/src/main/java/org/ngrinder/script/model/FileType.java