code: public static void addFilePatternsToPackageResourceGuard(final Application application,
  		final String... patterns)
  	{
  		final IPackageResourceGuard packageResourceGuard = application.getResourceSettings()
  			.getPackageResourceGuard();
  		if (packageResourceGuard instanceof SecurePackageResourceGuard)
  		{
  			final SecurePackageResourceGuard guard = (SecurePackageResourceGuard)packageResourceGuard;
  			for (final String pattern : patterns)
  			{
  				guard.addPattern(pattern);
  			}
  		}
  	}
docs: Adds the given file patterns to package resource guard from the given application.
  
  @param application
  the application
  @param patterns
  the patterns