}
}
return value;
}
catch (ParseException x) {
throw new StatisticException("Attribute could not be parsed as a number.", x);
}
catch (AttributeNotFoundException x) {
throw new StatisticException("Attribute was not found.", x);
}
catch (InstanceNotFoundException x) {
throw new StatisticException("MBean instance was not found.", x);
}
catch (ReflectionException x) {
throw new StatisticException("Could't get attribute value.", x);
}
catch (IOException x) {
throw new StatisticException("Couldn't access the MBean.", x);
}
catch (MBeanException x) {
throw new StatisticException("MBean's getter threw an exception.", x);
}
}