src/main/java/com/billybyte/mongo/MongoXml.java
@SuppressWarnings("unchecked")
	public T findOne(String key){
		DBObject query = new BasicDBObject();
		query.put(KEY_FIELD, key);
		DBObject ret = dbColl.findOne(query);
		if(ret==null)return null;
		Map<String,Object> keyValuePairMapFromMongo = ret.toMap();
		if(keyValuePairMapFromMongo.isEmpty())return null;
		Object o = keyValuePairMapFromMongo.get(VALUE_FIELD);
		return (T)xs.fromXML(o.toString());
	}
/**
	 * Finds the first document that has the specified key (quicker than a normal Find that returns a cursor)
	 * @param key
	 * @return
	 */
Finds the first document that has the specified key (quicker than a normal Find that returns a cursor)
@param key
@return
Finds the first document that has the specified key ( quicker than a normal Find that returns a cursor ) @param key @return
@SuppressWarnings("unchecked")
	public T findOne(String key){
		DBObject query = new BasicDBObject();
		query.put(KEY_FIELD, key);
		DBObject ret = dbColl.findOne(query);
		if(ret==null)return null;
		Map<String,Object> keyValuePairMapFromMongo = ret.toMap();
		if(keyValuePairMapFromMongo.isEmpty())return null;
		Object o = keyValuePairMapFromMongo.get(VALUE_FIELD);
		return (T)xs.fromXML(o.toString());
	}
@ SuppressWarnings ( "unchecked" ) public T findOne ( String key ) { DBObject query = new BasicDBObject ( ) ; query . put ( KEY_FIELD , key ) ; DBObject ret = dbColl . findOne ( query ) ; if ( ret == null ) return null ; Map < String , Object > keyValuePairMapFromMongo = ret . toMap ( ) ; if ( keyValuePairMapFromMongo . isEmpty ( ) ) return null ; Object o = keyValuePairMapFromMongo . get ( VALUE_FIELD ) ; return ( T ) xs . fromXML ( o . toString ( ) ) ; }
Finds the first document that has the specified key (quicker than a normal Find that returns a cursor)
 @param key
 @return
Finds the first document that has the specified key ( quicker than a normal Find that returns a cursor ) @param key @return