}
// Next, get all the NAS datastores from this array of datastores.
if (morArray.length > 0) {
int i;
for (i = 0; i < morArray.length; i++) {
NasDatastoreInfo nasDS;
try {
nasDS = hostDatastoreSystemMo.getNasDatastoreInfo(morArray[i]);
if (nasDS != null) {
//DatastoreInfo info = (DatastoreInfo)_context.getServiceUtil().getDynamicProperty(morDatastore, "info");
if (nasDS.getNas().getRemoteHost().equalsIgnoreCase(hostAddress) &&
nasDS.getNas().getRemotePath().equalsIgnoreCase(path)) {
return morArray[i];
}
}
} catch (Exception e) {
s_logger.info("Encountered exception when retrieving nas datastore info");