code: public static PackageNameMappingWithPackagePattern fromPackage(String packagePattern)
      {
          PackageNameMapping packageNameMapping = new PackageNameMapping();
          packageNameMapping.setPackagePattern(packagePattern);
          return packageNameMapping;
      }
docs: Sets the package pattern to match against.