public class ReleaseLocalManagerImpl implements ReleaseLocalManager {
// Business methods
public Release getRelease() throws PortalException, SystemException {
Release release = null;
try {
release = ReleaseUtil.findByPrimaryKey(Release.DEFAULT_ID);
}
catch (NoSuchReleaseException nsre) {
release = ReleaseUtil.create(Release.DEFAULT_ID);
Date now = new Date();
release.setCreateDate(now);
release.setModifiedDate(now);
ReleaseUtil.update(release);
}
return release;