code: @Override
      public String toApiImport(String name) {
          if (!apiPackage().isEmpty())
              return apiPackage();
          else if (trimApiPaths)
              return trimmedPaths.get(name).substring(1).replace('/', '.');
          else
              return super.toApiImport(name);
      }
docs: We use this for API package in our templates when trimmedPaths is true.