@@ -109,7 +110,7 @@ public class InstanceXmlToInstanceJsonTransformerRouter implements MessageRouter
privatevoidconsume(ObjectdocumentIn){
if(documentIninstanceofRecord){
logger.debug("documentIn is of class "+documentIn.getClass().getName());
logger.log(Level.TRACE,"documentIn is of class "+documentIn.getClass().getName());
RecordrecordIn=(Record)documentIn;
RecordJSONrecordOut=newRecordJSONImpl();
try{
...
...
@@ -117,14 +118,14 @@ public class InstanceXmlToInstanceJsonTransformerRouter implements MessageRouter
if(recordIn.getSubRecords().isEmpty()){
logger.debug(this.getClass().getSimpleName()+": Empty collection came in from queue, skipping further processing of this document (split level could be set too high)");
}else{
logger.debug(this.getClass().getSimpleName()+" has Record with "+recordIn.getSubRecords().size()+" sub record(s). Iterating:");
logger.log(Level.TRACE,this.getClass().getSimpleName()+" has Record with "+recordIn.getSubRecords().size()+" sub record(s). Iterating:");
logger.debug("No MARC source record found for instance ["+instanceId+"], institution ["+institutionId+"] and local identifier ["+localIdentifier+"]");
logger.log(Level.TRACE,"No MARC source record found for instance ["+instanceId+"], institution ["+institutionId+"] and local identifier ["+localIdentifier+"]");
}elseif(count==1){
logger.debug("Found existing MARC source record for instance ["+instanceId+"], institution ["+institutionId+"] and local identifier ["+localIdentifier+"]");
logger.log(Level.TRACE,"Found existing MARC source record for instance ["+instanceId+"], institution ["+institutionId+"] and local identifier ["+localIdentifier+"]");
RecordErrorerror=newHttpRecordError(response.getStatusLine(),responseAsString,responseAsString,"Error adding MARC source record ","MARC source","POST","{}");