docs: private static void filterClassesAddedToDeployedUnit( DeployedUnit deployedUnit, Class classToAdd) {
  
          if( classToAdd.isInterface()
                  || classToAdd.isAnnotation()
                  || classToAdd.isLocalClass()
                  || classToAdd.isMemberClass() ) {
             return;
          }
  
          boolean jaxbClass = false;
          boolean remoteableClass = false;
          // @XmlRootElement and @XmlType may be used with inheritance
          for( Annotation anno : classToAdd.getAnnotations() ) {
             if( XmlRootElement.class.equals(anno.annotationType()) ) {
                jaxbClass = true;
                break;
             }
             if( XmlType.class.equals(anno.annotationType()) ) {
                jaxbClass = true;
                break;
             }
          }
          // @Remotable is not inheritable, and may not be used as such
          for( Annotation anno : classToAdd.getDeclaredAnnotations() ) {
             if( Remotable.class.equals(anno.annotationType()) ) {
                 remoteableClass = true;
                 break;
             }
          }
  
          if( jaxbClass || remoteableClass ) {
              DeployedUnitImpl deployedUnitImpl = (DeployedUnitImpl) deployedUnit;
              deployedUnitImpl.addClass(classToAdd);
          }
      }