public static List<Class<?>>getAllDirectInterfaces(Class<?>c)
	{
		ArrayList<Class<?>> res = new ArrayList<Class<?>>();
		if (c != null)
		{
			Class<?>[] interfaces = c.getInterfaces();
			for (Class<?> intf : interfaces)
			{
				res.add(intf);
			}
		}
		return res;
	}