private void lookupInstance ( String args [ ] ) { String serviceName = args [ 1 ] ; System . out . println ( "lookupInstance, serviceName=" + serviceName ) ; try { ServiceInstance instance = ServiceDirectory . getLookupManager ( ) . lookupInstance ( serviceName ) ; printServiceInstance ( instance ) ; } catch ( ServiceException e ) { e . printStackTrace ( ) ; fail ( e . getServiceDirectoryError ( ) . getErrorMessage ( ) ) ; } }
Do the lookupInstance command .