code: public static InputStream getFor(String name, Class<?> cls)
  	{
  		InputStream ret;
  
  		if(cls == null)
  			throw new NullPointerException("cls is null");
  		if((ret = cls.getResourceAsStream(getResourcePathFor(name,cls)))==null)
  			throw new ResourceException("Unable to find resource for " + name + " and " + cls);
  		return ret;
  	}
docs: Gets a InputStream for a class's package.
  @param name The name of the resource.
  @param cls The class to use for the package name
  @return InputStream for the resource.
  @throws NullPointerException if name or cls are null.
  ResourceException if the resource cannot be found.