Detecting the Type by content, this can take some time, you need to call this in a background thread.