code: private String resolvePath(final String resource, final Class consumer) {
  
          if(resource.startsWith("/")) {
              //absolute path
              return resource;
          }
          final StringBuilder buf = new StringBuilder(32);
          buf.append('/').append(consumer.getPackage().getName().replaceAll("\\.", "/"))
             .append('/').append(resource);
          return buf.toString();
      }
docs: Resolves a resource relative to a consumer class. If the resource path starts with a '/', it will be used as
  is, because it does not denote a relative path. If the resource path is a relative path, it will be resolved
  relative to the package of the consumer class.
  @param resource
  the path to the resource to resolve. It may be absolute or relative.
  @param consumer
  the consumer that denotes the base to resolve a relative path.
  @return
  an absolute path to the resource