private void addRemoveAnnotations(EJBContainer container, RemoveMethodsMetaData list, String ejbName) throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException { if (list != null) { for (RemoveMethodMetaData removeMethod : list) { NamedMethodMetaData method = removeMethod.getBeanMethod(); RemoveImpl annotation = new RemoveImpl(removeMethod.isRetainIfException()); addAnnotations(Remove.class, annotation, container, method); } } }