/** * Get the schema for 'request'. */ public GetSchemaResult getSchema(String hostname, int port, Request request) throws IOException, RecordServiceException { try { client_.connect(hostname, port); return client_.getSchema(request); } finally { client_.close(); } } }