code: public Object fromStream(final byte[] iStream) throws IOException {
  		if (iStream == null || iStream.length == 0)
  			// NULL VALUE
  			return null;
  
  		final ORecordInternal<?> obj = Orient.instance().getRecordFactoryManager().newInstance();
  
  		final ORID rid = new ORecordId().fromStream(iStream);
  
  		obj.setIdentity(rid.getClusterId(), rid.getClusterPosition());
  		return obj;
  	}
docs: Re-Create any object if the class has a public constructor that accepts a String as unique parameter.