XStream xStream = getXStreamObject();
if (inStream != null)
{
Object o = xStream.fromXML(inStream);
IndexerProperties indexerProperties = (IndexerProperties) o;
List<Node> nodes = indexerProperties.getNodes();
if (nodes == null || (nodes != null && nodes.isEmpty()))
{
log.error("Nodes should not be empty/null");
throw new IndexingException("Nodes should not be empty/null");