Appeal from an order denying an application for a writ of habeas corpus. The appellant on August 20, 1955, was sentenced to an indeterminate term of 1 year, 6 months — 3 years. During his confinement and in November, 1957, he was transferred to the Dannemora State Hospital and in December, 1957 — prior to expiration of maximum term — pursuant to section 384 of the Correction Law, an order of retention was issued by the Clinton County Court. The section provides: “ Within thirty days prior to the expiration of the term of a prisoner confined in the Dannemora state hospital, when in the opinion of the director such prisoner continues insane, the director shall ■apply to a judge of a court of record to cause an examination to be made of
