APF-1303: Fixed OAuth Demo so it works with Java 7