REST Controller A simple REST Controller module written in pure Java. THIS IS A HANDCODED EXAMPLE. One of the objectives is to demonstrate differences between abstract classes and abstract interfaces. The REST interface example demonstrates the loosely-coupled flexibility of multiple interfaces in OOP. The entity example demonstrates the principle of tightly coupled contract in OOP.