code: public static byte[] getBytesFor(String name, Object obj)
  	{
  		if(obj == null)
  			throw new NullPointerException("obj is null");
  		return getBytesFor(name,obj.getClass());
  	}
docs: Get a resource as a byte array.
  @param name The name of the resource
  @return The contents of the resource as a byte array.
  @throws NullPointerException if name or obj are null.
  ResourceException if the resource cannot be found.