code: public static InputStream getInputStream(final File baseDir, final String resource) throws IOException {
  		File resourceFile = baseDir == null ? new File(resource) : new File(baseDir, resource);
  		return getInputStream(resourceFile);
  	}
docs: Loads a resource as {@link InputStream}.
  
  @param baseDir
  If not {@code null}, the directory relative to which resources are loaded.
  @param resource
  The resource to be loaded. If {@code baseDir} is not {@code null}, it is loaded
  relative to {@code baseDir}.
  @return The stream