code: private static String getAbsolutePath(Class<?> someClass, String nameOrSuffix, boolean append) {
  
      if (append) {
        return someClass.getName().replace('.', '/') + nameOrSuffix;
      } else {
        return someClass.getPackage().getName().replace('.', '/') + '/' + nameOrSuffix;
      }
    }
docs: @see #ClasspathResource(Class, String, boolean)
  
  @param someClass is the class identifying the path where the resource is located and the prefix of its
  filename.
  @param nameOrSuffix is the filename of the resource or a suffix (e.g. ".properties" or "-test.xml") for
  it depending on {@code append}.
  @param append - if {@code true} the {@code nameOrSuffix} is appended to the {@link Class#getSimpleName()
  simple classname} of {@code someClass} or {@code false} if the simple name is replaced by
  {@code nameOrSuffix}.
  @return the absolute path.