public Permission getRequiredPermission() {
if (name.startsWith(IdGeneratorService.ATOMIC_LONG_NAME)) {
return null;
}
if (delta == 0) {
return new AtomicLongPermission(name, ActionConstants.ACTION_READ);
}
return new AtomicLongPermission(name, ActionConstants.ACTION_MODIFY);
}