private static String bindParamIntoQuery(String query, Object parameter) {

		try {
			String paramAsJson = convertParameter(parameter);
			return query.replaceFirst(TOKEN, getMatcherWithEscapedDollar(paramAsJson));

		} catch (RuntimeException e) {
			return handleInvalidBinding(query, parameter, e);
		}
	}