// no protection implemented during application startup
// and when not implementing BaseProtectedEntity
if ( ApplicationStartupListener.isApplicationStarted() &&
example != null &&
BaseProtectedEntity.class.isAssignableFrom(example.getClass())) {
BaseProtectedEntity bpe = (BaseProtectedEntity) example;
if (!bpe.isDisableProtection()) {
return getSecurityFilter();
}
}
// no security needed
return "";