logger.debug("IN");
if (map == null) {
logger.warn("SDKMaps in input is null!!");
return null;
}
SbiGeoMaps sbiMap = null;
try {
sbiMap=new SbiGeoMaps();
sbiMap.setMapId(map.getMapId());
sbiMap.setName(map.getName());
sbiMap.setDescr(map.getDescr());
sbiMap.setFormat(map.getFormat());
sbiMap.setUrl(map.getUrl());
IBinContentDAO binContentDAO=DAOFactory.getBinContentDAO();
byte[] binContentsContent=binContentDAO.getBinContent(map.getBinId());
if(binContentsContent!=null){
Integer contentId=map.getBinId();
SbiBinContents sbiBinContents=new SbiBinContents();
sbiBinContents.setId(contentId);
sbiBinContents.setContent(binContentsContent);
sbiMap.setBinContents(sbiBinContents);
}
} catch (Exception e) {
logger.error("Error while converting SDKMap into SbiGeoFeature.", e);
logger.debug("Returning null.");