List<NicDetailVO> nicDetailList;
if (key == null) {
nicDetailList = _nicDetailDao.findDetails(id);
} else {
NicDetailVO nicDetail = _nicDetailDao.findDetail(id, key);
nicDetailList = new LinkedList<NicDetailVO>();
nicDetailList.add(nicDetail);
}
List<ResourceDetailResponse> nicDetailResponseList = new ArrayList<ResourceDetailResponse>();
for (NicDetailVO nicDetail : nicDetailList) {
ResourceDetailResponse nicDetailResponse = new ResourceDetailResponse();
// String uuid = ApiDBUtils.findN
nicDetailResponse.setName(nicDetail.getName());
nicDetailResponse.setValue(nicDetail.getValue());
nicDetailResponse.setResourceType(ResourceTag.TaggedResourceType.Nic.toString());
nicDetailResponse.setObjectName("nicdetail");
nicDetailResponseList.add(nicDetailResponse);
}