code: public String getResource(final int level) {
          if (level < resource.length) {
              return resource[level];
          }
          // offset is out of bounds...
          throw new IndexOutOfBoundsException("Index: " + level + ", Size: " + resource.length);
      }
docs: Returns the resource at the specified level.
  
  @param level
  resource level
  @return resource