private String convertNameIfNecessary(String urlAddress, String pomName, String useExtension) {
private String convertNameIfNecessary(String urlAddress, String pomName, String useExtension) throws IOException {
	private String convertNameIfNecessary(String urlAddress, String pomName, String useExtension) {		int index = pomName.indexOf(RealPom.SNAPSHOT);		// if pomName is a snapshot like "com.idega.content-SNAPSHOT.pom"		// read the corresponding version from 		// "com.idega.content-snapshot-version"		// and download the corresponding file like		// "com.idega.content-20041117.164329.pom"		if (index != -1) {			// e.g. pomName = com.idega.content-SNAPSHOT.pom			String fileName = pomName.substring(0,index);			// e.g. fileName = com.idega.content-			StringBuffer buffer = new StringBuffer(urlAddress);			buffer.append(fileName);			buffer.append(SNAPSHOT_VERSION_SUFFIX);			// e.g. buffer = urlAddress + com.idega.content-snapshot-version			String version = getContent(buffer.toString());			// e.g. version = 20041117.164329			// create new file name			buffer = new StringBuffer(fileName);			buffer.append(version);			buffer.append(useExtension);			// e.g. buffer = com.idega.content-20041117.164329.pom			pomName = buffer.toString();		}		return pomName;	}