result= new TimedRefreshInfo(contents);
} catch (NumberFormatException e) {
// If string didn't parse to long property, throw an exception
// reusing existing localised message, saying that Period was
// expected, but String was encountered.
throw new XDIMEException(
LOCALIZER.format("invalid-meta-content-type", new Object[]{
TimedRefreshInfo.class.getName(),
String.class.getName()}), e);
} catch (ProtocolException e) {
throw new XDIMEException(
LOCALIZER.format("invalid-meta-content-type",new Object[]{
TimedRefreshInfo.class.getName(),
String.class.getName()}), e);
}
return result;