code: private ResourceClass getParentResourceClass(final Element e) {
      final String parentClassName = e.getEnclosingElement().toString();
      final ResourceClass klass = resourceClasses.get(parentClassName);
      if (klass != null) {
        return klass;
      }
  
      final Path klassPath = e.getEnclosingElement().getAnnotation(Path.class);
      final ResourceClass newKlass = new ResourceClass(
          (klassPath == null) ? null : klassPath.value(),
          Lists.<ResourceMethod>newArrayList());
      resourceClasses.put(parentClassName, newKlass);
      return newKlass;
    }
docs: Given an {@link Element} representing the method get either a cached {@link ResourceClass} or
  produce a new one.