refactoring Restful J2SE-client for IMAGE