@GET
 @Path("/@activate")
 public Object doActivate() {
   try {
     AdministrativeStatusManager manager =
         Framework.getLocalService(AdministrativeStatusManager.class);
     manager.setNuxeoInstanceStatus(AdministrativeStatus.ACTIVE, "", ctx.getPrincipal().getName());
     return redirect(getPath());
   } catch (Exception e) {
     throw WebException.wrap(e);
   }
 }
 @PUT
 public Object doPut() {
   FormData form = ctx.getForm();
   try {
     AdministrativeStatusManager manager =
         Framework.getLocalService(AdministrativeStatusManager.class);
     manager.setNuxeoInstanceStatus(
         form.getString("status"), "assigned from rest interface", ctx.getPrincipal().getName());
     return redirect(getPath());
   } catch (Exception e) {
     throw WebException.wrap(e);
   }
 }
 @Override
 public void initialize(Object... args) {
   super.initialize(args);
   AdministrativeStatusManager mgr = Framework.getLocalService(AdministrativeStatusManager.class);
   administrativeStatus = mgr.getNuxeoInstanceStatus();
 }