public static void assertWriteAccess() {
    if (!ApplicationManager.getApplication().isWriteAccessAllowed()) {
      throwThreadAccessException(MUST_EXECUTE_IN_WRITE_ACTION);
    }
  }
public static void assertWriteAccess()