code: public String getEnclosingPackageName(TypeElement te) {
  
          PackageElement encl = configuration.utils.containingPackage(te);
          return (encl.isUnnamed()) ? "" : (encl.getQualifiedName() + ".");
      }
docs: Get the enclosed name of the package
  
  @param te  TypeElement
  @return the name