示例#1
0
  private PolopolyContext getContext() {
    if (lazyContext == null) {
      lazyContext = Util.util(server);
    }

    return lazyContext;
  }
示例#2
0
    public ContentIdUtil get(int i) {
      try {
        ContentId result = contentList.getEntry(i).getReferredContentId();

        if (result != null) {
          return Util.util(result, getContext());
        } else {
          return null;
        }
      } catch (CMException e) {
        throw new CMRuntimeException(
            "While getting entry "
                + i
                + " in "
                + ContentListUtilImpl.this.toString()
                + ": "
                + e.getMessage(),
            e);
      }
    }