code: public static String validateInput(final String context,
  			final String input, final String type, final int maxLength,
  			final boolean allowNull, final boolean canonicalize)
  			throws ValidationException {
  		return validator.getValidInput(context, input, type, maxLength,
  				allowNull, canonicalize);
  	}
docs: Regular Expression Validation
  
  @param context
  @param input
  @param type
  @param maxLength
  @param allowNull
  @param canonicalize
  @return