private SyncObject getSyncObject(JsonNode jsonNode) {
		
		String name = null;
		JsonNode jn1 =null;
		SyncObject syncObject = new SyncObject();
		
		
		Iterator<String> ite = jsonNode.fieldNames();

		while (ite.hasNext()) {
			String key = ite.next();
            if (JsonResourceTypeLocator.lookupType(key) != null) {

                jn1 = jsonNode.get(key);
                LOG.debug("Query response entity Key :" + key);

                try {
                    //Force the data to be casted to its type
                    Object intuitType = mapper.treeToValue(jn1, JsonResourceTypeLocator.lookupType(key));
                    //Double check
                    if (intuitType instanceof IntuitEntity) {
                        JAXBElement<? extends IntuitEntity> intuitObject = objFactory
                                .createIntuitObject((IntuitEntity) intuitType);
                        syncObject.setIntuitObject(intuitObject);
                    }
                }  catch (JsonParseException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                } catch (JsonMappingException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }
		}
		return syncObject;
	}
private SyncObject getSyncObject ( JsonNode jsonNode ) { String name = null ; JsonNode jn1 = null ; SyncObject syncObject = new SyncObject ( ) ; Iterator < String > ite = jsonNode . fieldNames ( ) ; while ( ite . hasNext ( ) ) { String key = ite . next ( ) ; if ( JsonResourceTypeLocator . lookupType ( key ) != null ) { jn1 = jsonNode . get ( key ) ; LOG . debug ( "Query response entity Key :" + key ) ; try { Object intuitType = mapper . treeToValue ( jn1 , JsonResourceTypeLocator . lookupType ( key ) ) ; if ( intuitType instanceof IntuitEntity ) { JAXBElement < ? extends IntuitEntity > intuitObject = objFactory . createIntuitObject ( ( IntuitEntity ) intuitType ) ; syncObject . setIntuitObject ( intuitObject ) ; } } catch ( JsonParseException e ) { e . printStackTrace ( ) ; } catch ( JsonMappingException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } return syncObject ; }
Method to Object Intuitobject

@param JsonNode