improving concurrency in files
Error on unmarshalling JSON content: wrong format.

When start with Distributed mode, OSerializtionException happened.
Error on unmarshalling JSON content: wrong format. Use <field> : <value>.
Exception happened at ORecordSerializerJSON.java Method : fromString 
    if (fields.size() % 2 != 0)
      throw new OSerializationException("Error on unmarshalling JSON content: wrong format. Use <field> : <value>");
Due to "," at the end of json, this fields number is 9 not 8. Easiest solution, remove "," before end of json object


Write some simple test code to verify. 

  public static void testloadDatabaseConfiguration(final String filePath) {
	    File file = new File(filePath);
	    if (!file.exists() || file.length() == 0)
	      return;
	    FileInputStream f = null;
	    try {
	      f = new FileInputStream(file);
	      final byte[] buffer = new byte[(int) file.length()];
	      f.read(buffer);
	      System.out.println("<loadDatabaseConfiguration> : " + new String(buffer));
	      ODocument doc = (ODocument) new ODocument().fromJSON(new String(buffer), "noMap");
	    } catch (Exception e) {
	    } finally {
	      if (f != null)
	        try {
	          f.close();
	        } catch (IOException e) {
	        }
	    }
	  }
support compress response content
NPE

NPE checking
sync with trunk
Support gzip compression for response data
Support gzip compression for response data
gzip compression
Merge branch 'master' of git://github.com/nuvolabase/orientdb
For embedded json object
get request source
get request source
Merge remote-tracking branch 'nuvolabase/master'
first version of 2q was implemented and tested
Optimization of 2q cache
LinkedLists replaced with LRULists
Lock on evicted items was fixed
First version of concurrent test(need refactoring)
Merge remote-tracking branch 'nuvolabase/master'
code was reformatted
Merge branch 'master' of git://github.com/nuvolabase/orientdb
Merge branch 'master' of https://github.com/henryzhao81/orientdb