A Rest Hooks implementation in Java