int interceptorsRemoved = 0;
if (insertedInterceptors != null)
{
for (int i = 0; i < insertedInterceptors.size(); i++)
{
GeneratedAdvisorInterceptor interceptor = (GeneratedAdvisorInterceptor) insertedInterceptors.get(i);
if (interceptor.getName().equals(name))
{
ArrayList newList = new ArrayList();
newList.addAll(insertedInterceptors);
newList.remove(i);
insertedInterceptors = newList;
interceptorsRemoved ++;
}
}
}
if (appendedInterceptors != null)
{
for (int i = 0; i < appendedInterceptors.size(); i++)
{
GeneratedAdvisorInterceptor interceptor = (GeneratedAdvisorInterceptor) appendedInterceptors.get(i);
if (interceptor.getName().equals(name))
{
ArrayList newList = new ArrayList();
newList.addAll(appendedInterceptors);
newList.remove(i);
appendedInterceptors = newList;