ByteArray val = new ByteArray(value);
parameters.put(parameterName, val);
}
private ByteArray getParameter(String parameterName) {
ByteArray result = parameters.get(parameterName);
if(result == null)
throw new IllegalStateException("You did not call query.setParameter(\""+parameterName+"\", <yourvalue>) and that parameter is required");
return result;
}