code: public static boolean isValidSerializeFormat(final String serializeFormat) throws SerializationException {
  		if (!StringUtils.hasText(serializeFormat)) {
  			throw new SerializationException("serialization format is either null or empty!");
  		} else if (serializeFormat.equalsIgnoreCase(XML_SERIALIZE_FORMAT) || serializeFormat.equalsIgnoreCase(JSON_SERIALIZE_FORMAT)) {
  			return true;
  		} else {
  			throw new SerializationException("Serializer not supported for the given serialization format : " + serializeFormat);
  		}
  	}
docs: Method to validate whether the given serialization format is correct
  
  @param serializeFormat
  @return boolean
  @throws SerializationException