Updated to include JavaConfiguration as example