return true; currentGroup = (EntitiesDescriptor) currentGroup.getParent(); } while (currentGroup != null);
/** * Checks that at least either Valid Until or Cache Duration is present when Entities Descriptor is root element. * * @param entitiesDescriptor * @throws ValidationException */ protected void validateRoot(EntitiesDescriptor entitiesDescriptor) throws ValidationException { if (entitiesDescriptor.getParent() == null && entitiesDescriptor.getValidUntil() == null && entitiesDescriptor.getCacheDuration() == null) { throw new ValidationException("Must have either ValidUntil or CacheDuration when is root element."); } } }
return rpConfigs.get(entityGroup.getName()); entityGroup = (EntitiesDescriptor) entityGroup.getParent();