public String getEnclosingPackageName(TypeElement te) {

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

@param te  TypeElement
@return the name