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