private void addExcludeAnnotations(EJBContainer container, ExcludeListMetaData list, String ejbName) throws ClassNotFoundException, NoSuchMethodException, NoSuchFieldException { if (list != null && list.getMethods() != null) { for(MethodMetaData method : list.getMethods()) { if (method.getEjbName().equals(ejbName)) { DenyAllImpl annotation = new DenyAllImpl(); addAnnotations(DenyAll.class, annotation, container, method); } } } }