add rest handling in java and impl client in chrome ext (using jquery...lazy)