In a proceeding pursuant to CPLR article 78 to review a determination of the Director of Employee Relations of the Office of Court Administration, dated July 16, 1984, which denied the petitioners’ out-of-title work grievance, and in which the petitioners also sought declaratory relief, the petitioners appeal from a judgment of the Supreme Court, Queens County, which dismissed the petition on the merits, and dismissed the application for a declaratory judgment.
The Special Term correctly concluded that the determination of the Director of Employee Relations of the Office of Court Administration was not arbitrary or capricious. Based on the record before us, we have also determined that Special Term did not err when it found that the petitioners’ request for declaratory relief with respect to the possible future use of Court Officers and Senior Court Officers to guard prisoners in detention cells in courts other than the Family Court was. However, since court officers currently guard juveniles in detention cells at the Family Court, the legality of their use for this purpose is ripe for judicial resolution.
The petitioners’ basic argument is that the detention cells in the various courts are merely an extension of the county jail and that the Sheriff of Nassau County therefore exercises exclusive jurisdiction over them. With respect to the Family Court, this argument clearly lacks merit. Family Court Act § 304.1 precludes the use of a county jail or other facility used to detain adults to house juveniles. No statute gives the County Sheriff custody over juveniles at any time. Therefore, the detention cells at the Family Court are clearly not an extension of the county jail or otherwise under the exclusive jurisdiction of the Sheriff.