java rest wrapper to nmap