code: public void getResourceState(final CmsUUID structureId, final AsyncCallback<CmsResourceState> callback) {
  
          CmsRpcAction<CmsResourceState> action = new CmsRpcAction<CmsResourceState>() {
  
              /**
               * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
               */
              @Override
              public void execute() {
  
                  start(0, false);
                  getService().getResourceState(structureId, this);
              }
  
              /**
               * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
               */
              @Override
              protected void onResponse(CmsResourceState result) {
  
                  stop(false);
                  callback.onSuccess(result);
              }
          };
          action.execute();
      }
docs: Fetches the state of a resource from the server.<p>
  
  @param structureId the structure id of the resource
  @param callback the callback which should receive the result