. . "So far as there is need for divine service and spiritual consolation in the army, in hospitals, prisons or other public institutions, the religious societies shall be permitted to perform the religious offices, but all compulsion shall be avoided." . . .