Rest factory implementation