private boolean isRemovable( ProtectedItem.MaxValueCount mvc, String attrId, Attributes entry )
{
for( Iterator k = mvc.iterator(); k.hasNext(); )
{
MaxValueCountItem mvcItem = ( MaxValueCountItem ) k.next();
if( attrId.equalsIgnoreCase( mvcItem.getAttributeType() ) )
{
Attribute attr = entry.get( attrId );
int attrCount = attr == null? 0 : attr.size();
if( attrCount >= mvcItem.getMaxCount() )
{
return true;
}
}
}