question: private static String quoteParam ( String param ) { if ( param . contains ( "\"" ) || param . contains ( "'" ) ) { throw new IllegalArgumentException ( "Invalid character in parameter" ) ; } return "\"" + param + "\"" ; }
target:  Quote a parameter to be included in the header. Parameters with embedded quotes will be rejected.