@Override
    public void fetch(ObjectMapper mapper) throws IOException, ClassNotFoundException,InstantiationException, IllegalAccessException
    {    
        String caption = "";
        String username = "";
        Integer status;
        if(!(paginateURL == null || paginateURL.isEmpty()))
        {
            instagramConsumer = new Consumer(paginateURL,searchRestObject.getArgs(),searchRestObject.getVals());  
        }
        ClientResponse response = instagramConsumer.getQueryResponse();
        status = response.getStatus();
        if(response.getStatus() == 200)
        {
            instagramObject = mapper.readValue(response.getEntity(String.class),InstagramObject.class);             
        
             instagramData = instagramObject.getData();
            Pagination paginateData = instagramObject.getPagination();
            if( paginateData == null || paginateData.getNext_url().isEmpty())
            {
                paginateURL = "";
            }
            else
            {
                paginateURL = paginateData.getNext_url();
            }    
            for(int x = 0; x < instagramData.size();x++)
            {
                dataHashMap = (LinkedHashMap<String,LinkedHashMap>)instagramData.get(x);
                imagesHashMap = dataHashMap.get("images");
                imageHashMap = imagesHashMap.get("thumbnail");                                   
                InstagramImage thumbnail = new InstagramImage(imageHashMap.get("url"),0,0);
                imageHashMap = imagesHashMap.get("low_resolution");
                InstagramImage lowResolution = new InstagramImage(imageHashMap.get("url"),0,0);
                imageHashMap = imagesHashMap.get("standard_resolution");
                InstagramImage standardResolution = new InstagramImage(imageHashMap.get("url"),0,0);
                caption = "";
                username = "";
                try
                {
                    captionHashMapStr = dataHashMap.get("caption");
                    captionHashMapLis = dataHashMap.get("caption");
                    fromHashMap = captionHashMapLis.get("from");
                    caption = captionHashMapStr.get("text");
                    username = fromHashMap.get("username");
                }
                catch(NullPointerException e)
                {
                    //No Caption information
                }
                imageListIter.add(new InstagramImages(thumbnail,lowResolution,standardResolution,username,caption));
            }
        }
        
    }