protected String normalizeAppName(String app){
  String app2=app.replaceAll("\\W","");
  if (app.length() == 0) {
    throw new IllegalArgumentException("Bad app name: " + app);
  }
  return app2;
}

protected String normalizeAppName ( String app ) { String app2 = app . replaceAll ( "\\W" , "" ) ; if ( app . length ( ) == 0 ) { throw new IllegalArgumentException ( "Bad app name: " + app ) ; } return app2 ; }
normalize the supplied application name .
