protected void ensureAuthorization(SimpleFeatureType featureType, Filter filter, Transaction tx, Connection cx)
throws IOException, SQLException {
InProcessLockingManager lm = (InProcessLockingManager) getLockingManager();
// verify if we have any lock to check
Map locks = lm.locks(featureType.getTypeName());
if(locks.size() != 0) {
// limiting query to only extract locked features
if(locks.size() <= MAX_IDS_IN_FILTER) {
Set<FeatureId> ids = getLockedIds(locks);
Id lockFilter = getFilterFactory().id(ids);