} catch (NumberFormatException nfe) {
throw new InvalidHubLoadException("Corrupted hub load data : " + hubLoadStr, nfe);
}
}
// it it a protobuf encoded hub load data.
HubLoadData hubLoadData;
try {
BufferedReader reader = new BufferedReader(
new StringReader(hubLoadStr));
HubLoadData.Builder dataBuilder = HubLoadData.newBuilder();
TextFormat.merge(reader, dataBuilder);