List<ZNRecord> instanceCurrentStateList = new ArrayList<ZNRecord>();
for (ZNRecord idealState : idealStateList)
{
String resourceName = idealState.getId();
HelixProperty property = accessor.getProperty(keyBuilder.currentState(host, sessionId, resourceName));
ZNRecord currentState =null;
if (property == null)
{
_logger.warn("Resource " + resourceName + " has null currentState");
currentState = new ZNRecord(resourceName);