Potential for null pointer exception here? I though you were checking for null before you updated this. Something like:
String size = createReq.getMetacards() == null ? "" : createReq.getMetacards().size;
then use size in the logging statement