is = connection.getInputStream(); } catch (Exception e) { displayErrorString(e.toString()); return null; } Vector assetNames = null; try { ObjectInputStream p = new ObjectInputStream(is); assetNames = (Vector)p.readObject(); p.close(); connection.closeConnection(); } catch (Exception e) { displayErrorString("Object read exception: " + "_2_" + e.toString()); return null; } Collections.sort(assetNames); return assetNames;
is = connection.getInputStream(); } catch (Exception e) { displayErrorString(e.toString()); return null;
    public Vector getAssetNames(String orgName, String supplyType) {	String orgURL = (String)orgURLs.get(orgName);	//When querying for all just ASSET	String queryStr=ASSET;	if((supplyType != null) &&	   (!(supplyType.equals(GET_ALL_CLASS_TYPES)))) {	    queryStr = (ASSET_AND_CLASSTYPE + supplyType);	}	//logger.debug("Submitting: " + queryStr + " to: " + orgURL +	//                   " for: " + SERV_ID);	ConnectionHelper connection = null;	InputStream is = null;	try {	    connection = 		new ConnectionHelper(orgURL, SERV_ID);	    connection.sendData(queryStr);	    is = connection.getInputStream();	} catch (Exception e) {	    displayErrorString(e.toString());	    return null;	}	Vector assetNames = null;	try {	    ObjectInputStream p = new ObjectInputStream(is);	    assetNames = (Vector)p.readObject();	    p.close();	    connection.closeConnection();	} catch (Exception e) {	    displayErrorString("Object read exception: " + "_2_" + e.toString());	    return null;	}	Collections.sort(assetNames);	return assetNames;    }