Java Rest Tutorial adapted from 308tube