return ExtensionObject.Configuration.get("helppage");
}
public int setAdvertisement(String advertisementText, short timePeriod) {
if (this.advertisements.size() == this.maxAdvertisementCount) {
throw new AdvertisementError("Maximum advertisement count reached");
}
short advertisementId = this.generateId();
if (advertisementText != null && !advertisementText.isEmpty()) {
Advertisement ad = new Advertisement(advertisementText, timePeriod, this);
ad.setAdvertisementId(advertisementId);
this.advertisements.add(ad);
} else {
throw new AdvertisementError("Advertisement text should not be empty");
}
return advertisementId;
}