import java.util.HashMap;\r
import java.util.List;\r
\r
+import org.apache.log4j.Logger;\r
+\r
import com.indexdata.pz2utils4jsf.pazpar2.data.Pazpar2ResponseData;\r
\r
public class Pazpar2ResponseData implements Serializable {\r
- \r
+\r
+ Logger logger = Logger.getLogger(Pazpar2ResponseData.class);\r
private static final long serialVersionUID = -3909755656714679959L;\r
String type = null;\r
HashMap<String,String> attributes = new HashMap<String,String>();\r
}\r
\r
public String getXml() {\r
- return xml;\r
+ if (type != null && type.equals("record")) {\r
+ logger.debug("Getting XML for "+type + ": "+xml);\r
+ } \r
+ return xml == null ? "" : xml;\r
}\r
\r
}\r