src/org/kocakosm/pitaya/io/Resource.java
public static Resource find(String name)
	{
		Parameters.checkNotNull(name);
		ClassLoader loader = XObjects.firstNonNull(
			Thread.currentThread().getContextClassLoader(),
			Resource.class.getClassLoader());
		URL url = loader.getResource(name);
		if (url != null) {
			return new Resource(url);
		}
		throw new NotFoundException(name);
	}
public static Resource find(String name)
	{
		Parameters.checkNotNull(name);
		ClassLoader loader = XObjects.firstNonNull(
			Thread.currentThread().getContextClassLoader(),
			Resource.class.getClassLoader());
		URL url = loader.getResource(name);
		if (url != null) {
			return new Resource(url);
		}
		throw new NotFoundException(name);
	}
Finds and returns the resource having the given name using the
{@linkplain Thread#getContextClassLoader() context class loader}.
Note that if the context class loader is {@code null}, the class
loader that loaded this class will be used instead.

@param name the resource's name.

@return the requested resource.

@throws NullPointerException if {@code name} is {@code null}.
@throws NotFoundException if the resource can't be found.