James Ryan has been in a detention centre since May