private void verifyPackage(String packageName) throws Exception {
  if (!mValidPackages.contains(packageName)) {
    throw new Exception("Package not available");
  }
}

private void verifyPackage ( String packageName ) throws Exception { if ( ! mValidPackages . contains ( packageName ) ) { throw new Exception ( "Package not available" ) ; } }
verifies if the package should be restored
